{"id":78,"date":"2011-07-12T13:15:02","date_gmt":"2011-07-12T05:15:02","guid":{"rendered":"http:\/\/www.kiccleaf.com\/?p=78"},"modified":"2011-07-12T13:38:57","modified_gmt":"2011-07-12T05:38:57","slug":"freebsd8-2%e4%b8%8bvsftp%e5%ae%89%e8%a3%85%e9%85%8d%e7%bd%ae","status":"publish","type":"post","link":"http:\/\/www.kiccleaf.com\/?p=78","title":{"rendered":"FreeBSD8.2\u4e0bvsftp\u5b89\u88c5\u914d\u7f6e"},"content":{"rendered":"<p>\u7531\u4e8e\u6d89\u53caFTP\u5230\u89e3\u51b3\u65b9\u6848\uff0c\u7279\u522b\u5728FreeBSD8.2\u4e0b\u91c7\u7528ports\u90e8\u7f72vsftp\uff0c\u914d\u7f6e\u5982\u4e0b\uff1a<\/p>\n<p>\u5148\u521b\u5efa\u7528\u6237\uff1aleaf \u5bc6\u7801\uff1a123456\u00a0 \u91c7\u7528adduser\u547d\u4ee4\u6dfb\u52a0\u6b64\u7528\u6237\uff0c\u5173\u4e8e\u6dfb\u52a0\u7528\u6237\u53e6\u4e00\u7ae0\u4e2d\u5df2\u7ecf\u6709\u4ecb\u7ecd\u3002<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\nkiccleaf# cd \/usr\/ports\/ftp\/vsftpd\r\nkiccleaf# make install clean\r\n<\/pre>\n<p>\u53ef\u4ee5\u4e0d\u7528\u9009\u62e9<br \/>\nOptions for vsftpd 2.3.4 x<br \/>\n<a href=\"http:\/\/www.kiccleaf.com\/wp-content\/uploads\/2011\/07\/Options-for-vsftpd-2.3.4-x.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-79\" title=\"Options for vsftpd 2.3.4 x\" src=\"http:\/\/www.kiccleaf.com\/wp-content\/uploads\/2011\/07\/Options-for-vsftpd-2.3.4-x.jpg\" alt=\"\" width=\"565\" height=\"340\" srcset=\"http:\/\/www.kiccleaf.com\/wp-content\/uploads\/2011\/07\/Options-for-vsftpd-2.3.4-x.jpg 565w, http:\/\/www.kiccleaf.com\/wp-content\/uploads\/2011\/07\/Options-for-vsftpd-2.3.4-x-300x180.jpg 300w\" sizes=\"auto, (max-width: 565px) 100vw, 565px\" \/><\/a><\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\n===&amp;gt; Compressing manual pages for vsftpd-2.3.4\r\n===&amp;gt; Registering installation for vsftpd-2.3.4\r\n===&amp;gt; SECURITY REPORT:\r\nThis port has installed the following files which may act as network\r\nservers and may therefore pose a remote security risk to the system.\r\n\/usr\/local\/libexec\/vsftpd\r\n\r\nIf there are vulnerabilities in these programs there may be a security\r\nrisk to the system. FreeBSD makes no guarantee about the security of\r\nports included in the Ports Collection. Please type 'make deinstall'\r\nto deinstall the port if this is a concern.\r\n\r\nFor more information, and contact details about the security\r\nstatus of this software, see the following webpage:\r\nhttp:\/\/vsftpd.beasts.org\/\r\nkiccleaf#\r\n<\/pre>\n<p>\u9632\u6b62\u4fee\u6539\u9519\u8bef\u5148\u5907\u4efdvsftpd.conf\u6587\u4ef6<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\nkiccleaf# mv \/usr\/local\/etc\/vsftpd.conf \/usr\/local\/etc\/vsftpd.conf.bak\r\nkiccleaf# ee\/usr\/local\/etc\/vsftpd.conf\r\n<\/pre>\n<p>\u5728\u65b0\u5efa\u6587\u4ef6vsftpd.conf\u8f93\u5165\u4ee5\u4e0b\u4ee3\u7801\u5185\u5bb9\uff1a<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\nanonymous_enable=NO\r\nwrite_enable=YES\r\nlocal_enable=YES\r\nlocal_umask=022\r\ndirmessage_enable=YES\r\nxferlog_enable=YES\r\nconnect_from_port_20=YES\r\ndata_connection_timeout=3\r\nnopriv_user=nobody\r\nlisten=YES\r\nsecure_chroot_dir=\/usr\/local\/share\/vsftpd\/empty\r\nchroot_local_user=YES\r\ntcp_wrappers=Yes\r\nuserlist_enable=Yes\r\nuserlist_deny=No\r\npasv_enable=Yes\r\npasv_min_port=65000\r\npasv_max_port=65100\r\nuserlist_file=\/usr\/local\/etc\/vsftpd.user_list\r\n\r\n<\/pre>\n<p>\u521b\u5efa\u4e00\u4e2a\u6587\u4ef6\uff0c\u6dfb\u52a0\u53ef\u767b\u9646\u7684FTP\u7528\u6237<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\nkiccleaf# echo leaf &amp;gt;&amp;gt; \/usr\/local\/etc\/vsftpd.user_list\r\nkiccleaf# cd \/usr\/local\/etc\/\r\nkiccleaf# ll\r\ntotal 32\r\n-rw-r--r--\u00a0 1 root\u00a0 wheel\u00a0 3770 Jul 12 17:39 axelrc\r\ndrwxr-xr-x\u00a0 2 root\u00a0 wheel\u00a0\u00a0 512 Jul 12 17:12 devd\r\ndrwxr-xr-x\u00a0 2 root\u00a0 wheel\u00a0\u00a0 512 Jul 12 17:12 man.d\r\ndrwxr-xr-x\u00a0 2 root\u00a0 wheel\u00a0\u00a0 512 Jul 12 17:12 pam.d\r\ndrwxr-xr-x\u00a0 2 root\u00a0 wheel\u00a0\u00a0 512 Jul 12 18:39 rc.d\r\n-r--r--r--\u00a0 1 root\u00a0 wheel\u00a0 5010 Jul 12 21:22 vsftpd.conf\r\n-r--r--r--\u00a0 1 root\u00a0 wheel\u00a0 4586 Jul 12 21:20 vsftpd.conf.dist\r\n-rw-r--r--\u00a0 1 root\u00a0 wheel\u00a0\u00a0\u00a0\u00a0 1 Jul 12 21:23 vsftpd.user_list\r\n-r--r--r--\u00a0 1 root\u00a0 wheel\u00a0 4499 Jul 12 17:37 wgetrc.sample\r\nkiccleaf# cat \/usr\/local\/etc\/vsftpd.user_list\r\nleaf  #\u521a\u6267\u884c\u6dfb\u52a0\u7684\u7528\u6237leaf\r\nkiccleaf# \/usr\/local\/libexec\/vsftpd &amp;amp;\r\n&#x5B;1] 1952\r\n<\/pre>\n<p>\u6dfb\u52a0\u5230\u968f\u7cfb\u7edf\u542f\u52a8\u9879\u4e2d<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\nkiccleaf# echo vsftp_ebable=YES &gt;&gt;\/etc\/rc.conf\r\n<\/pre>\n<p>\u56de\u53bbWin\u4e0b\u91c7\u7528FlashFxp\u8fdb\u884c\u94fe\u63a5\u6d4b\u8bd5<\/p>\n<p><a href=\"http:\/\/www.kiccleaf.com\/wp-content\/uploads\/2011\/07\/ftpuserpass.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-80\" title=\"ftpuserpass\" src=\"http:\/\/www.kiccleaf.com\/wp-content\/uploads\/2011\/07\/ftpuserpass.jpg\" alt=\"\" width=\"422\" height=\"292\" srcset=\"http:\/\/www.kiccleaf.com\/wp-content\/uploads\/2011\/07\/ftpuserpass.jpg 422w, http:\/\/www.kiccleaf.com\/wp-content\/uploads\/2011\/07\/ftpuserpass-300x207.jpg 300w\" sizes=\"auto, (max-width: 422px) 100vw, 422px\" \/><\/a><br \/>\n\u94fe\u63a5\u6210\u529f\u540e<br \/>\n<a href=\"http:\/\/www.kiccleaf.com\/wp-content\/uploads\/2011\/07\/ftpok.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-81\" title=\"ftpok\" src=\"http:\/\/www.kiccleaf.com\/wp-content\/uploads\/2011\/07\/ftpok.jpg\" alt=\"\" width=\"498\" height=\"470\" srcset=\"http:\/\/www.kiccleaf.com\/wp-content\/uploads\/2011\/07\/ftpok.jpg 498w, http:\/\/www.kiccleaf.com\/wp-content\/uploads\/2011\/07\/ftpok-300x283.jpg 300w\" sizes=\"auto, (max-width: 498px) 100vw, 498px\" \/><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u7531\u4e8e\u6d89\u53caFTP\u5230\u89e3\u51b3\u65b9\u6848\uff0c\u7279\u522b\u5728FreeBSD8.&#8230;<\/p>\n<div class=\"more-link-wrapper\"><a class=\"more-link\" href=\"http:\/\/www.kiccleaf.com\/?p=78\">Continue reading<span class=\"screen-reader-text\">FreeBSD8.2\u4e0bvsftp\u5b89\u88c5\u914d\u7f6e<\/span><\/a><\/div>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"iawp_total_views":3,"footnotes":""},"categories":[6],"tags":[8,16],"class_list":["post-78","post","type-post","status-publish","format-standard","hentry","category-freebsd","tag-freebsd","tag-vsftp","entry"],"views":3502,"_links":{"self":[{"href":"http:\/\/www.kiccleaf.com\/index.php?rest_route=\/wp\/v2\/posts\/78","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.kiccleaf.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.kiccleaf.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.kiccleaf.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.kiccleaf.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=78"}],"version-history":[{"count":0,"href":"http:\/\/www.kiccleaf.com\/index.php?rest_route=\/wp\/v2\/posts\/78\/revisions"}],"wp:attachment":[{"href":"http:\/\/www.kiccleaf.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=78"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.kiccleaf.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=78"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.kiccleaf.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=78"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}