{"id":3918,"date":"2020-04-18T21:02:23","date_gmt":"2020-04-18T13:02:23","guid":{"rendered":"https:\/\/2blog.ilc.edu.tw\/linkc\/?p=3918"},"modified":"2021-03-18T19:55:34","modified_gmt":"2021-03-18T11:55:34","slug":"fedora-core32-install-vsftpd","status":"publish","type":"post","link":"https:\/\/2blog.ilc.edu.tw\/linkc\/2020\/04\/18\/fedora-core32-install-vsftpd\/","title":{"rendered":"fedora core32 install vsftpd"},"content":{"rendered":"<div>\u4f7f\u7528ftp \u670d\u52d9\uff0c\u5c07iphone \u53caipad \u8cc7\u6599\u50b3\u81f3 linux desktop.<\/div>\n<div><\/div>\n<div>\u2587 \u5b89\u88dd\u3001\u8abf\u6821\u3001\u555f\u7528<\/div>\n<div class=\"color1\">sudo -s<\/div>\n<div class=\"color1\"><a href=\"https:\/\/www.server-world.info\/en\/command\/html\/dnf.html\">dnf<\/a> -y install vsftpd<\/div>\n<div>\n<div class=\"color1\"><a href=\"https:\/\/www.server-world.info\/en\/command\/html\/vi.html\">vi<\/a>m \/etc\/vsftpd\/vsftpd.conf<\/div>\n<blockquote>\n<div>\n<p># line 12: make sure value is [NO] (no anonymous)anonymous_enable=NO<\/p>\n<p># line 83,84: uncomment ( allow ascii mode )<br \/>\nascii_upload_enable=YES<br \/>\nascii_download_enable=YES<\/p>\n<p># line 101,102: uncomment ( enable chroot )<br \/>\nchroot_local_user=YES<br \/>\nchroot_list_enable=YES<\/p>\n<p># line 104: uncomment ( chroot list file )<br \/>\nchroot_list_file=\/etc\/vsftpd\/chroot_list<\/p>\n<p># line 110: uncomment<br \/>\nls_recurse_enable=YES<\/p>\n<p># line 115: change (if listening IPv4 only)<br \/>\n# if listning IPv4 and IPv6 both, specify [NO]<br \/>\nlisten=YES<br \/>\n# line 124: change (if listening IPv6 only)<br \/>\n# if listning IPv4 and IPv6 both, specify [YES]<br \/>\nlisten_ipv6=NO<\/p>\n<p># add to the end<br \/>\n# specify root directory (if don&#8217;t specify, users&#8217; home directory become FTP home directory)<br \/>\nlocal_root=public_html<\/p>\n<p># use local time<br \/>\nuse_localtime=YES<\/p>\n<p># turn off for seccomp filter (if you cannot login, add this line)<br \/>\nseccomp_sandbox=NO<\/p>\n<\/div>\n<\/blockquote>\n<div class=\"color1\"><a href=\"https:\/\/www.server-world.info\/en\/command\/html\/vi.html\">vi<\/a>m \/etc\/vsftpd\/chroot_list<\/div>\n<blockquote>\n<div>\n<div class=\"block\">\n<div class=\"color2\"># add users you allow to move over their home directory<\/div>\n<p>username<\/p>\n<\/div>\n<\/div>\n<\/blockquote>\n<div>\n<div><a href=\"https:\/\/www.server-world.info\/en\/command\/html\/systemctl.html\">systemctl<\/a> start vsftpd<\/div>\n<div>\n<div class=\"color1\"><a href=\"https:\/\/www.server-world.info\/en\/command\/html\/systemctl.html\">systemctl<\/a> enable vsftpd<\/div>\n<\/div>\n<p>\u2587Firewalld \u8a2d\u5b9a<\/p>\n<p><a href=\"https:\/\/www.server-world.info\/en\/command\/html\/vi.html\">vi<\/a>m \/etc\/vsftpd\/vsftpd.conf<\/p>\n<blockquote>\n<div class=\"color1\">\n<div class=\"color2\"># add to the end<\/div>\n<div class=\"color2\"># fix PASV ports to allow FTP access with PASV<\/div>\n<div class=\"block\">pasv_enable=YES<br \/>\npasv_min_port=21000<br \/>\npasv_max_port=21010<\/div>\n<\/div>\n<\/blockquote>\n<div class=\"color1\">\n<div>\n<div class=\"color1\"><a href=\"https:\/\/www.server-world.info\/en\/command\/html\/systemctl.html\">systemctl<\/a> restart vsftpd<\/div>\n<div>\n<div class=\"color1\">firewall-cmd &#8211;add-service=ftp &#8211;permanent<br \/>\nfirewall-cmd &#8211;add-port=21000-21010\/tcp &#8211;permanent<br \/>\nfirewall-cmd &#8211;reload<\/div>\n<\/div>\n<div><\/div>\n<div>\u2587SELinux\u00a0 Boolean \u8a2d\u5b9a<\/div>\n<div>setsebool -P ftpd_full_access on<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<div><\/div>\n<div>DATA FROM\uff1ahttps:\/\/www.server-world.info\/en\/note?os=Fedora_29&amp;p=ftp&amp;f=1<\/div>\n","protected":false},"excerpt":{"rendered":"<p>\u4f7f\u7528ftp \u670d\u52d9\uff0c\u5c07iphone \u53caipad \u8cc7\u6599\u50b3\u81f3 linux desktop. \u2587 \u5b89\u88dd\u3001\u8abf\u6821\u3001\u555f\u7528 s [&hellip;]<\/p>\n","protected":false},"author":58,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"ocean_post_layout":"","ocean_both_sidebars_style":"","ocean_both_sidebars_content_width":0,"ocean_both_sidebars_sidebars_width":0,"ocean_sidebar":"","ocean_second_sidebar":"","ocean_disable_margins":"enable","ocean_add_body_class":"","ocean_shortcode_before_top_bar":"","ocean_shortcode_after_top_bar":"","ocean_shortcode_before_header":"","ocean_shortcode_after_header":"","ocean_has_shortcode":"","ocean_shortcode_after_title":"","ocean_shortcode_before_footer_widgets":"","ocean_shortcode_after_footer_widgets":"","ocean_shortcode_before_footer_bottom":"","ocean_shortcode_after_footer_bottom":"","ocean_display_top_bar":"default","ocean_display_header":"default","ocean_header_style":"","ocean_center_header_left_menu":"","ocean_custom_header_template":"","ocean_custom_logo":0,"ocean_custom_retina_logo":0,"ocean_custom_logo_max_width":0,"ocean_custom_logo_tablet_max_width":0,"ocean_custom_logo_mobile_max_width":0,"ocean_custom_logo_max_height":0,"ocean_custom_logo_tablet_max_height":0,"ocean_custom_logo_mobile_max_height":0,"ocean_header_custom_menu":"","ocean_menu_typo_font_family":"","ocean_menu_typo_font_subset":"","ocean_menu_typo_font_size":0,"ocean_menu_typo_font_size_tablet":0,"ocean_menu_typo_font_size_mobile":0,"ocean_menu_typo_font_size_unit":"px","ocean_menu_typo_font_weight":"","ocean_menu_typo_font_weight_tablet":"","ocean_menu_typo_font_weight_mobile":"","ocean_menu_typo_transform":"","ocean_menu_typo_transform_tablet":"","ocean_menu_typo_transform_mobile":"","ocean_menu_typo_line_height":0,"ocean_menu_typo_line_height_tablet":0,"ocean_menu_typo_line_height_mobile":0,"ocean_menu_typo_line_height_unit":"","ocean_menu_typo_spacing":0,"ocean_menu_typo_spacing_tablet":0,"ocean_menu_typo_spacing_mobile":0,"ocean_menu_typo_spacing_unit":"","ocean_menu_link_color":"","ocean_menu_link_color_hover":"","ocean_menu_link_color_active":"","ocean_menu_link_background":"","ocean_menu_link_hover_background":"","ocean_menu_link_active_background":"","ocean_menu_social_links_bg":"","ocean_menu_social_hover_links_bg":"","ocean_menu_social_links_color":"","ocean_menu_social_hover_links_color":"","ocean_disable_title":"default","ocean_disable_heading":"default","ocean_post_title":"","ocean_post_subheading":"","ocean_post_title_style":"","ocean_post_title_background_color":"","ocean_post_title_background":0,"ocean_post_title_bg_image_position":"","ocean_post_title_bg_image_attachment":"","ocean_post_title_bg_image_repeat":"","ocean_post_title_bg_image_size":"","ocean_post_title_height":0,"ocean_post_title_bg_overlay":0.5,"ocean_post_title_bg_overlay_color":"","ocean_disable_breadcrumbs":"default","ocean_breadcrumbs_color":"","ocean_breadcrumbs_separator_color":"","ocean_breadcrumbs_links_color":"","ocean_breadcrumbs_links_hover_color":"","ocean_display_footer_widgets":"default","ocean_display_footer_bottom":"default","ocean_custom_footer_template":"","ocean_post_oembed":"","ocean_post_self_hosted_media":"","ocean_post_video_embed":"","ocean_link_format":"","ocean_link_format_target":"self","ocean_quote_format":"","ocean_quote_format_link":"post","ocean_gallery_link_images":"on","ocean_gallery_id":[],"footnotes":""},"categories":[54,53],"tags":[],"class_list":["post-3918","post","type-post","status-publish","format-standard","hentry","category-c-20915","category-c-449","entry"],"meta_key":{"_edit_lock":["1587214804:58"],"_edit_last":["58"],"_wp_page_template":["default"],"_elementor_controls_usage":["a:0:{}"]},"_links":{"self":[{"href":"https:\/\/2blog.ilc.edu.tw\/linkc\/wp-json\/wp\/v2\/posts\/3918"}],"collection":[{"href":"https:\/\/2blog.ilc.edu.tw\/linkc\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/2blog.ilc.edu.tw\/linkc\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/2blog.ilc.edu.tw\/linkc\/wp-json\/wp\/v2\/users\/58"}],"replies":[{"embeddable":true,"href":"https:\/\/2blog.ilc.edu.tw\/linkc\/wp-json\/wp\/v2\/comments?post=3918"}],"version-history":[{"count":2,"href":"https:\/\/2blog.ilc.edu.tw\/linkc\/wp-json\/wp\/v2\/posts\/3918\/revisions"}],"predecessor-version":[{"id":3920,"href":"https:\/\/2blog.ilc.edu.tw\/linkc\/wp-json\/wp\/v2\/posts\/3918\/revisions\/3920"}],"wp:attachment":[{"href":"https:\/\/2blog.ilc.edu.tw\/linkc\/wp-json\/wp\/v2\/media?parent=3918"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/2blog.ilc.edu.tw\/linkc\/wp-json\/wp\/v2\/categories?post=3918"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/2blog.ilc.edu.tw\/linkc\/wp-json\/wp\/v2\/tags?post=3918"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}