{"id":1000,"date":"2009-11-28T21:07:00","date_gmt":"2009-11-28T13:07:00","guid":{"rendered":"\/?p=1000"},"modified":"2009-11-28T21:07:00","modified_gmt":"2009-11-28T21:07:00","slug":"1000","status":"publish","type":"post","link":"https:\/\/blog.vimge.com\/archives\/linux\/1000.html","title":{"rendered":"CentOS\u7684vsftpd\u5b89\u88c5\u4e0e\u914d\u7f6e"},"content":{"rendered":"

PS\uff1a<\/strong>\u4eca\u5929\u88c5\u4e86\u4e2aCentOS,\u5b89\u88c5\u9009\u62e9\u5305\u7684\u65f6\u5019\u5c31\u9009\u4e86\u5f00\u53d1\u5305\u548cvsftp\u7ed3\u679c\uff0c\u914d\u7f6e\u4e00\u4e0bvsftp\u53d1\u73b0\u8bbf\u95ee\u4e0d\u4e86\uff0c\u5177\u4f53\u5c31\u662f\u62a5\u9519"Can’t connect to remote server. Socket error = #10065.“\u627e\u4e86\u534a\u5929\u8d44\u6599\u540e\u6765\u53d1\u73b0\u662f\u9632\u706b\u5899\u628a\u81ea\u5df1\u7ed9\u6321\u4f4f\u4e86\uff0c\u7ed3\u679cservice vsftpd stop\uff0c\u5c31\u641e\u5b9a\u4e86\u3002<\/p>\n

vsFTP\u670d\u52a1\u5668\u7684\u5b89\u88c5<\/strong><\/p>\n

\u5b89\u88c5\u4e00\u4e2a\u8f6f\u4ef6\u5b9e\u5728\u662f\u4e0d\u8bb8\u8981\u5728\u8fd9\u91cc\u4ecb\u7ecd\uff0c\u56e0\u6b64\uff0c\u8fd9\u91cc\u7684\u5b89\u88c5\u4e3b\u8981\u9488\u5bf9vsFTPd\u670d\u52a1\u5668\u7684\u521d\u7ea7\u914d\u7f6e\u3002<\/p>\n

VSFTPD\u7684\u83dc\u9e1f\u7bc7<\/p>\n

\u7248\u6743\u58f0\u660e\uff1a\u53ef\u4ee5\u4efb\u610f\u8f6c\u8f7d\uff0c\u8f6c\u8f7d\u65f6\u8bf7\u52a1\u5fc5\u4ee5\u8d85\u94fe\u63a5\u5f62\u5f0f\u6807\u660e\u6587\u7ae0\u539f\u59cb\u51fa\u5904\u548c\u4f5c\u8005\u4fe1\u606f\u53ca\u672c\u58f0\u660e<\/p>\n

[\u539f\u6587\u51fa\u5904http:\/\/www.5ilinux.com\/vsftp01.html<\/a>]<\/p>\n

      \u8fd9\u662f\u6211\u8fd9\u4e2a\u83dc\u9e1f\u5b66\u4e60LINUX\u6240\u5199\u7684\u7b2c\u4e00\u7bc7\u6587\u7ae0\uff0c\u662f\u6bd4\u8f83\u57fa\u7840\u7684FTP\u67b6\u8bbe\u7684\u5e94\u7528\uff0c\u5982\u679c\u6211\u5199\u6709\u4ec0\u4e48\u95ee\u9898\u8bf7\u5927\u5bb6\u591a\u6307\u6559\uff0c\u6211\u540e\u7eed\u4f1a\u9646\u7eed\u51fa\u8fdb\u9636\u7bc7\u628aFTP\u4e2d\u5404\u79cd\u8be6\u7ec6\u7684\u914d\u7f6e\u8ddf\u5927\u5bb6\u4e00\u8d77\u8fdb\u884c\u63a2\u8ba8\u3002\u6211\u6240\u7528\u7684\u662fRedhat Linux AS + VSFTPD-1.2.0-4\u7684\u7cfb\u7edf\u67b6\u6784\uff0c\u5728\u8fd9\u91cc\u8bf4\u660e\u7684\u662f\u5982\u679c\u5bf9\u914d\u7f6e\u6587\u4ef6\u4e0d\u662f\u5f88\u719f\u6089\uff0c\u6700\u597d\u505a\u4e2a\u5907\u4efd\uff0c\u4ee5\u514d\u8bef\u64cd\u4f5c\uff1a
\u533f\u540d\u670d\u52a1\u5668\u7684\u8fde\u63a5\uff08\u72ec\u7acb\u7684\u670d\u52a1\u5668\uff09<\/p>\n

\u5728\/etc\/vsftpd\/vsftpd.conf\u914d\u7f6e\u6587\u4ef6\u4e2d\u6dfb\u52a0\u5982\u4e0b\u51e0\u9879\uff1a
anonymous_enable=yes (\u5141\u8bb8\u533f\u540d\u767b\u9646)
dirmessage_enable=yes \uff08\u5207\u6362\u76ee\u5f55\u65f6\uff0c\u663e\u793a\u76ee\u5f55\u4e0b.message\u7684\u5185\u5bb9\uff09
local_umask=022 (FTP\u4e0a\u672c\u5730\u7684\u6587\u4ef6\u6743\u9650\uff0c\u9ed8\u8ba4\u662f077)
connect_form_port_20=yes \uff08\u542f\u7528FTP\u6570\u636e\u7aef\u53e3\u7684\u6570\u636e\u8fde\u63a5\uff09*
xferlog_enable=yes \uff08\u6fc0\u6d3b\u4e0a\u4f20\u548c\u4e0b\u4f20\u7684\u65e5\u5fd7\uff09
xferlog_std_format=yes (\u4f7f\u7528\u6807\u51c6\u7684\u65e5\u5fd7\u683c\u5f0f)
ftpd_banner=XXXXX \uff08\u6b22\u8fce\u4fe1\u606f\uff09
pam_service_name=vsftpd \uff08\u9a8c\u8bc1\u65b9\u5f0f\uff09*
listen=yes \uff08\u72ec\u7acb\u7684VSFTPD\u670d\u52a1\u5668\uff09*<\/p>\n

\u529f\u80fd\uff1a\u53ea\u80fd\u8fde\u63a5FTP\u670d\u52a1\u5668\uff0c\u4e0d\u80fd\u4e0a\u4f20\u548c\u4e0b\u4f20
\u6ce8\uff1a\u5176\u4e2d\u6240\u6709\u548c\u65e5\u5fd7\u6b22\u8fce\u4fe1\u606f\u76f8\u5173\u8fde\u7684\u90fd\u662f\u53ef\u9009\u9879,\u6253\u4e86\u661f\u53f7\u7684\u65e0\u8bba\u4ec0\u4e48\u5e10\u6237\u90fd\u8981\u6dfb\u52a0\uff0c\u662f\u5c5e\u4e8eFTP\u7684\u57fa\u672c\u9009\u9879
\u5f00\u542f\u533f\u540dFTP\u670d\u52a1\u5668\u4e0a\u4f20\u6743\u9650<\/p>\n

\u5728\u914d\u7f6e\u6587\u4ef6\u4e2d\u6dfb\u52a0\u4ee5\u4e0b\u7684\u4fe1\u606f\u5373\u53ef\uff1a
Anon_upload_enable=yes (\u5f00\u653e\u4e0a\u4f20\u6743\u9650)
Anon_mkdir_write_enable=yes \uff08\u53ef\u521b\u5efa\u76ee\u5f55\u7684\u540c\u65f6\u53ef\u4ee5\u5728\u6b64\u76ee\u5f55\u4e2d\u4e0a\u4f20\u6587\u4ef6\uff09
Write_enable=yes (\u5f00\u653e\u672c\u5730\u7528\u6237\u5199\u7684\u6743\u9650)
Anon_other_write_enable=yes (\u533f\u540d\u5e10\u53f7\u53ef\u4ee5\u6709\u5220\u9664\u7684\u6743\u9650)
\u5f00\u542f\u533f\u540d\u670d\u52a1\u5668\u4e0b\u4f20\u7684\u6743\u9650<\/p>\n

\u5728\u914d\u7f6e\u6587\u4ef6\u4e2d\u6dfb\u52a0\u5982\u4e0b\u4fe1\u606f\u5373\u53ef\uff1a
Anon_world_readable_only=no<\/p>\n

\u6ce8\uff1a\u8981\u6ce8\u610f\u6587\u4ef6\u5939\u7684\u5c5e\u6027\uff0c\u533f\u540d\u5e10\u6237\u662f\u5176\u5b83\uff08other\uff09\u7528\u6237\u8981\u5f00\u542f\u5b83\u7684\u8bfb\u5199\u6267\u884c\u7684\u6743\u9650
\uff08R\uff09\u8bfb—–\u4e0b\u4f20 \uff08W\uff09\u5199—-\u4e0a\u4f20 \uff08X\uff09\u6267\u884c—-\u5982\u679c\u4e0d\u5f00FTP\u7684\u76ee\u5f55\u90fd\u8fdb\u4e0d\u53bb
\u666e\u901a\u7528\u6237FTP\u670d\u52a1\u5668\u7684\u8fde\u63a5\uff08\u72ec\u7acb\u670d\u52a1\u5668\uff09<\/p>\n

\u5728\u914d\u7f6e\u6587\u4ef6\u4e2d\u6dfb\u52a0\u5982\u4e0b\u4fe1\u606f\u5373\u53ef\uff1a
Local_enble=yes \uff08\u672c\u5730\u5e10\u6237\u80fd\u591f\u767b\u9646\uff09
Write_enable=no \uff08\u672c\u5730\u5e10\u6237\u767b\u9646\u540e\u65e0\u6743\u5220\u9664\u548c\u4fee\u6539\u6587\u4ef6\uff09<\/p>\n

\u529f\u80fd\uff1a\u53ef\u4ee5\u7528\u672c\u5730\u5e10\u6237\u767b\u9646vsftpd\u670d\u52a1\u5668\uff0c\u6709\u4e0b\u8f7d\u4e0a\u4f20\u7684\u6743\u9650
\u6ce8\uff1a\u5728\u7981\u6b62\u533f\u540d\u767b\u9646\u7684\u4fe1\u606f\u540e\u533f\u540d\u670d\u52a1\u5668\u7167\u6837\u53ef\u4ee5\u767b\u9646\u4f46\u4e0d\u53ef\u4ee5\u4e0a\u4f20\u4e0b\u4f20
\u7528\u6237\u767b\u9646\u9650\u5236\u8fdb\u5176\u5b83\u7684\u76ee\u5f55\uff0c\u53ea\u80fd\u8fdb\u5b83\u7684\u4e3b\u76ee\u5f55<\/p>\n

\u8bbe\u7f6e\u6240\u6709\u7684\u672c\u5730\u7528\u6237\u90fd\u6267\u884cchroot
Chroot_local_user=yes \uff08\u672c\u5730\u6240\u6709\u5e10\u6237\u90fd\u53ea\u80fd\u5728\u81ea\u5bb6\u76ee\u5f55\uff09<\/p>\n

\u8bbe\u7f6e\u6307\u5b9a\u7528\u6237\u6267\u884cchroot
Chroot_list_enable=yes \uff08\u6587\u4ef6\u4e2d\u7684\u540d\u5355\u53ef\u4ee5\u8c03\u7528\uff09
Chroot_list_file=\/\u4efb\u610f\u6307\u5b9a\u7684\u8def\u5f84\/vsftpd.chroot_list<\/p>\n

\u6ce8\u610f\uff1avsftpd.chroot_list \u662f\u6ca1\u6709\u521b\u5efa\u7684\u9700\u8981\u81ea\u5df1\u6dfb\u52a0\uff0c\u8981\u60f3\u63a7\u5236\u5e10\u53f7\u5c31\u76f4\u63a5\u5728\u6587\u4ef6\u4e2d\u52a0\u5e10\u53f7\u5373\u53ef
\u9650\u5236\u672c\u5730\u7528\u6237\u8bbf\u95eeFTP
Userlist_enable=yes (\u7528userlistlai \u6765\u9650\u5236\u7528\u6237\u8bbf\u95ee)
Userlist_deny=no (\u540d\u5355\u4e2d\u7684\u4eba\u4e0d\u5141\u8bb8\u8bbf\u95ee)
Userlist_file=\/\u6307\u5b9a\u6587\u4ef6\u5b58\u653e\u7684\u8def\u5f84\/ \uff08\u6587\u4ef6\u653e\u7f6e\u7684\u8def\u5f84\uff09<\/p>\n

\u6ce8\uff1a\u5f00\u542fuserlist_enable=yes\u533f\u540d\u5e10\u53f7\u4e0d\u80fd\u767b\u9646
\u5b89\u5168\u9009\u9879
Idle_session_timeout=600(\u79d2) \uff08\u7528\u6237\u4f1a\u8bdd\u7a7a\u95f2\u540e10\u5206\u949f\uff09
Data_connection_timeout=120\uff08\u79d2\uff09 \uff08\u5c06\u6570\u636e\u8fde\u63a5\u7a7a\u95f22\u5206\u949f\u65ad\uff09
Accept_timeout=60\uff08\u79d2\uff09 \uff08\u5c06\u5ba2\u6237\u7aef\u7a7a\u95f21\u5206\u949f\u540e\u65ad\uff09
Connect_timeout=60\uff08\u79d2\uff09 \uff08\u4e2d\u65ad1\u5206\u949f\u540e\u53c8\u91cd\u65b0\u8fde\u63a5\uff09
Local_max_rate=50000\uff08bite\uff09 \uff08\u672c\u5730\u7528\u6237\u4f20\u8f93\u738750K\uff09
Anon_max_rate=30000\uff08bite\uff09 \uff08\u533f\u540d\u7528\u6237\u4f20\u8f93\u738730K\uff09
Pasv_min_port=50000 \uff08\u5c06\u5ba2\u6237\u7aef\u7684\u6570\u636e\u8fde\u63a5\u7aef\u53e3\u6539\u5728
Pasv_max_port=60000 50000—60000\u4e4b\u95f4\uff09
Max_clients=200 \uff08FTP\u7684\u6700\u5927\u8fde\u63a5\u6570\uff09
Max_per_ip=4 \uff08\u6bcfIP\u7684\u6700\u5927\u8fde\u63a5\u6570\uff09
Listen_port=5555 \uff08\u4ece5555\u7aef\u53e3\u8fdb\u884c\u6570\u636e\u8fde\u63a5\uff09
\u67e5\u770b\u8c01\u767b\u9646\u4e86FTP,\u5e76\u6740\u6b7b\u5b83\u7684\u8fdb\u7a0b
ps –xf |grep ftp
kill \u8fdb\u7a0b\u53f7<\/p>\n<\/p>\n

vsFTP\u670d\u52a1\u5668\u7684\u914d\u7f6e<\/strong><\/p>\n

VSFTPD\u7684\u9ad8\u624b\u7bc7<\/p>\n

\u7248\u6743\u58f0\u660e\uff1a\u53ef\u4ee5\u4efb\u610f\u8f6c\u8f7d\uff0c\u8f6c\u8f7d\u65f6\u8bf7\u52a1\u5fc5\u4ee5\u8d85\u94fe\u63a5\u5f62\u5f0f\u6807\u660e\u6587\u7ae0\u539f\u59cb\u51fa\u5904\u548c\u4f5c\u8005\u4fe1\u606f\u53ca\u672c\u58f0\u660e<\/p>\n

[\u539f\u6587\u51fa\u5904http:\/\/www.5ilinux.com\/vsftp02.html<\/a>]<\/p>\n

\u6211\u53ef\u4e0d\u662f\u9ad8\u624b\uff01\uff01\uff01^_^\u6211\u53ea\u4e0d\u8fc7\u662f\u4e2a\u83dc\u9e1f\uff0c\u5c3d\u6211\u7684\u80fd\u529b\u5199\u51fa\u4e86\u6211\u8fd9\u4e2a\u83dc\u9e1f\u89c9\u5f97\u7684\u9ad8\u624b\u7bc7\uff0c\u6240\u4ee5\u6709\u4ec0\u4e48\u9519\u8bef\u8bf7\u5927\u5bb6\u6307\u6b63\u54e6\uff01\uff01\uff01<\/p>\n

\u73af\u5883\uff1alinux as 3.0 + vsftpd -1.2.0-4\u7684\u7cfb\u7edf\u67b6\u6784\uff0c\u662f\u5728\u72ec\u7acb\u670d\u52a1\u5668\u4e0b\u7684\u54e6\uff01\u8ba8\u538cXINETD^_^
\u914d\u7f6e\u672c\u5730\u7ec4\u8bbf\u95ee\u7684FTP<\/p>\n

\u9996\u5148\u521b\u5efa\u7528\u6237\u7ec4 test\u548cFTP\u7684\u4e3b\u76ee\u5f55
groupadd test
mkdir \/tmp\/test<\/p>\n

\u7136\u540e\u521b\u5efa\u7528\u6237
useradd -G test –d \/tmp\/test –M usr1<\/p>\n

\u6ce8\uff1aG\uff1a\u7528\u6237\u6240\u5728\u7684\u7ec4 d\uff1a\u8868\u793a\u521b\u5efa\u7528\u6237\u7684\u81ea\u5df1\u76ee\u5f55\u7684\u4f4d\u7f6e\u7ed9\u4e88\u6307\u5b9a<\/p>\n

M\uff1a\u4e0d\u5efa\u7acb\u9ed8\u8ba4\u7684\u81ea\u5bb6\u76ee\u5f55\uff0c\u4e5f\u5c31\u662f\u8bf4\u5728\/home\u4e0b\u6ca1\u6709\u81ea\u5df1\u7684\u76ee\u5f55
useradd –G test –d \/tmp\/test –M usr2<\/p>\n

\u63a5\u7740\u6539\u53d8\u6587\u4ef6\u5939\u7684\u5c5e\u4e3b\u548c\u6743\u9650
chown usr1.test \/tmp\/test —-\u8fd9\u8868\u793a\u628a\/tmp\/test\u7684\u5c5e\u4e3b\u5b9a\u4e3ausr1
chmod 750 \/tmp\/test —-7\u8868\u793awrx 5\u8868\u793arx 0\u8868\u793a\u4ec0\u4e48\u6743\u9650\u90fd\u6ca1\u6709<\/p>\n

\u8fd9\u4e2a\u5b9e\u9a8c\u7684\u76ee\u7684\u5c31\u662fusr1\u6709\u4e0a\u4f20\u3001\u5220\u9664\u548c\u4e0b\u8f7d\u7684\u6743\u9650<\/p>\n

\u800cusr2\u53ea\u6709\u4e0b\u8f7d\u7684\u6743\u9650\u6ca1\u6709\u4e0a\u4f20\u548c\u5220\u9664\u7684\u6743\u9650<\/p>\n

\u5f53\u7136\u5566\u5927\u5bb6\u522b\u5fd8\u4e86\u6211\u4eec\u7684\u4e3b\u914d\u7f6e\u6587\u4ef6vsftpd.conf<\/p>\n

\u8981\u786e\u5b9alocal_enable=yes\u3001write_enable=yes\u3001chroot_local_usr=yes\u8fd9\u4e09\u4e2a\u9009\u9879\u662f\u6709\u7684\u54e6\uff01<\/p>\n

\u914d\u7f6e\u72ec\u7acbFTP\u7684\u670d\u52a1\u5668\u7684\u975e\u7aef\u53e3\u6807\u51c6\u6a21\u5f0f\u8fdb\u884c\u6570\u636e\u8fde\u63a5<\/p>\n

\u8fd9\u4e2a\u975e\u5e38\u5bb9\u6613\uff1a\u5728VSFTPD\u3002CONF\u4e2d\u6dfb\u52a0
Listen_port=33333<\/p>\n

\u5c31\u53ef\u4ee5\u4e86\u5566\uff01<\/p>\n

\u914d\u7f6e\u5355\u72ec\u7684\u865a\u62dfFTP\uff0c\u4f7f\u7528\u865a\u62dfFTP\u7528\u6237\uff0c\u5e76\u4f7f\u5efa\u7acb\u7684\u56db\u4e2a\u5e10\u6237\u4e2d\u6709\u4e0d\u540c\u7684\u6743\u9650<\/p>\n

\uff08\u4e24\u4e2a\u6709\u8bfb\u76ee\u5f55\u7684\u6743\u9650\uff0c\u4e00\u4e2a\u6709\u6d4f\u89c8\u3001\u4e0a\u4f20\u3001\u4e0b\u8f7d\u7684\u6743\u9650\uff0c\u4e00\u4e2a\u6709\u6d4f\u89c8\u3001\u4e0b\u8f7d\u3001\u5220\u9664\u548c\u6539\u6587\u4ef6\u540d\u7684\u6743\u9650\uff09
A\uff1a\u914d\u7f6e\u7f51\u5361<\/p>\n

\u7b2c\u4e00\u5757\u7f51\u5361\u5730\u5740\u662f10.2.3.4 \u63a9\u7801\u662f255.255.0.0
ifconfig eth0:1 211.131.4.253 netmask 255.255.255.0 up
B\uff1a\u5199\u5165\/etc\/sysconfig\u4e2d\uff08\u4e3a\u4e86\u91cd\u8d77\u540eIP\u5730\u5740\u4e0d\u4f1a\u4e22\u5931\uff09
cd \/etc\/sysconfig\/network-scr\u012bpts
cp ifcfg-eth0 ifcfg-eth0:1
vi ifcfg-eth0:1\u5728\u5176\u4e2d\u4fee\u6539\u5185\u5bb9\u5982\u4e0b
DEVICE=eth0:1
BROADCAST=211.131.4.255
HWADDR=\u8be5\u7f51\u5361\u7684MAC\u5730\u5740
IPADDR=211.131.4.253
NETMASK=255.255.255.0
NETWORK=211.131.4.0
\u014dnBOOT=yes
TYPE=Ethernet
wq\u9000\u51fa
C\uff1a\u8fdb\u5165vsftpd.conf\u6240\u5728\u7684\u6587\u4ef6\u5939
cp vsftpd.conf vsftpd2.conf<\/p>\n

\u4fee\u6539vsftpd.conf\u6dfb\u52a0\u4ee5\u4e0b\u4fe1\u606f
Listen_address=10.2.3.4<\/p>\n

\u4fee\u6539vsftpd2.conf\u6dfb\u52a0\u4ee5\u4e0b\u4fe1\u606f
Listen_address=211.131.4.253
Ftpd_banner=this is a virtual ftp test<\/p>\n

\u5230\u6b64\u865a\u62df\u7684FTP\u670d\u52a1\u5668\u5efa\u7acb\u597d\u4e86
D\uff1a\u5efa\u7acblogins.txt
vi \/tmp\/logins.txt<\/p>\n

\u6dfb\u52a0\u5165\u4e0b\u4fe1\u606f\uff1a
longlei————\u7528\u6237\u540d
longlei————\u5bc6\u7801
zhangweibo
zhangweibo
jinhui
jinhui
lxp
lxp<\/p>\n

\u683c\u5f0f\u8981\u6309\u7167\u6211\u7684\u6765\u54e6\uff0c\u4e00\u4e2a\u7528\u6237\u540d\uff0c\u4e00\u4e2a\u5bc6\u7801\u5566
E\uff1a\u5efa\u7acb\u8bbf\u95ee\u8005\u7684\u53e3\u4ee4\u5e93\u6587\u4ef6,\u7136\u540e\u4fee\u6539\u5176\u6743\u9650
db_load –T –t hash –f \/tmp\/logins.txt \/etc\/vsftpd_login.db
F\uff1a\u8fdb\u5982\/etc\/pam.d\/\u4e2d\u521b\u5efa
ftp.vu<\/a><\/p>\n

\u5728\u6b64\u6587\u4ef6\u4e2d\u6dfb\u52a0\u5982\u4e0b\u4fe1\u606f
auth required \/lib\/security\/pam_userdb.so db=\/etc\/vsftpd_login
account required \/lib\/security\/pam_userdb.so db=\/etc\/vsftpd_login
G\uff1a\u5728\/var\/ftp\/\u521b\u5efa\u76ee\u5f55\u5e76\u6539\u53d8\u5176\u5c5e\u6027\u548c\u5b83\u7684\u5c5e\u4e3b
useradd -d \/var\/ftp\/test qiang
chmod 700 \/var\/ftp\/test<\/p>\n

\u5728\u76ee\u5f55\u4e2d\u6dfb\u52a0test_file\u6d4b\u8bd5\u6587\u4ef6
H\uff1a\u8fdb\u5165vsftpd2.conf\u4fee\u6539\u5176\u4e2d\u7684\u4fe1\u606f
Listen_yes
Anonymous_enable=no
Local_enable=yes
Write_enable=no
Anon_upload_enable=no
Anon_mkdir_write_enable=no
Anon_other_write_enable=no
Chroot_local_user=yes
Guest_enable=yes———-\u8d77\u7528\u865a\u62df\u7528\u6237
Guest_username=qiang——\u5c06\u865a\u62df\u7528\u6237\u6620\u5c04\u4e3a\u672c\u5730\u7528\u6237
Listen_port=5555
Max_client=10
Max_per_ip=1
Ftpd_banner=this is a virtual server and users
Pam_service_name=ftp.vu<\/p>\n

\u6ce8\uff1a\u5728\u4e3b\u914d\u7f6e\u6587\u4ef6\u4e2d\u7ed9\u7684\u6743\u9650\u8d8a\u4f4e\uff0c\u5728\u540e\u9762\u5206\u7528\u6237\u7ba1\u7406\u7684\u65f6\u5019\u5bf9\u62e5\u62a4\u7684\u6743\u9650\u5212\u5206\u7684\u7a7a\u95f4\u5c31\u8d8a\u5927\uff0c\u56e0\u4e3a\u4e3b\u914d\u7f6e\u6587\u4ef6\u6700\u9ad8\u7684\u9650\u5236\u670d\u52a1\u5148\u8bfb\u4e3b\u914d\u7f6e\u6587\u4ef6\uff0c\u7136\u540e\u518d\u8bfb\u7528\u6237\u7684\u914d\u7f6e\u6587\u4ef6<\/p>\n

\u91cd\u8d77\u670d\u52a1\u3002\u5230\u6b64\u865a\u62dfUSER\u5c31\u5efa\u597d\u4e86
I\uff1a\u5728vsftpd.comf\u6240\u5728\u7684\u76ee\u5f55\u4e2d\u521b\u5efavirtaul\u6587\u4ef6\u76ee\u5f55\u5e76\u5728\u6587\u4ef6\u76ee\u5f55\u4e2d\u521b\u5efa\u4ee5\u4f60\u7528\u6237\u540d\u547d\u540d\u7684\u914d\u7f6e\u6587\u4ef6
Longlei zhangweibo jinhui lxp<\/p>\n

\u5728longlei\u4e2d\u6dfb\u52a0\uff1a
Anon_world_readable_only=no<\/p>\n

\u5728lxp\u4e2d\u6dfb\u52a0
Anon_world_readable_only=no<\/p>\n

\u8fd9\u6837\u6b64\u4e24\u4e2a\u7528\u6237\u5c31\u6709\u4e86\u6d4f\u89c8\u76ee\u5f55\u7684\u6743\u9650\u4e86<\/p>\n

\u5728jinhui\u4e2d\u6dfb\u52a0
Anon_world_readable_only=no
Write_enable=yes
Anon_upload_enable=yes<\/p>\n

\u6b64\u7528\u6237\u5c31\u6709\u4e86\u4e0a\u4f20\u3001\u4e0b\u8f7d\u548c\u6d4f\u89c8\u7684\u6743\u9650<\/p>\n

\u5728zhangweibo\u4e2d\u6dfb\u52a0
Anon_world_readable_only=no
Write_enable=yes
Anon_upload_enable=yes
Anon_other_write_enable=yes<\/p>\n

\u6b64\u7528\u6237\u5c31\u6709\u4e86\u4e0a\u4f20\u3001\u4e0b\u8f7d\u3001\u5220\u9664\u6587\u4ef6\u76ee\u5f55\u3001\u4fee\u6539\u6587\u4ef6\u540d\u548c\u6d4f\u89c8\u7684\u6743\u9650
J\uff1a\u4fee\u6539vsftpd2.conf<\/p>\n

\u52a0\u5165user_config_dir=\/vsftpd.conf\u6240\u5728\u7684\u76ee\u5f55\/virtual<\/p>\n

\u91cd\u8d77\u670d\u52a1\u5668\u5c31\u641e\u5b9a\u4e86<\/p>\n

vsftpd.conf\u4e2d\u7684\u6240\u6709\u914d\u7f6e\u4fe1\u606f<\/p>\n

vsftpd.conf\u7684\u53c2\u6570\uff1aAnonymous_enable=yes \u5141\u8bb8\u533f\u540d\u767b\u9646
Dirmessage_enable=yes \u5207\u6362\u76ee\u5f55\u65f6\uff0c\u663e\u793a\u76ee\u5f55\u4e0b.message\u7684\u5185\u5bb9
Local_umask=022 FTP\u4e0a\u672c\u5730\u7684\u6587\u4ef6\u6743\u9650\uff0c\u9ed8\u8ba4\u662f077
Connect_form_port_20=yes \u542f\u7528FTP\u6570\u636e\u7aef\u53e3\u7684\u6570\u636e\u8fde\u63a5 *
Xferlog_enable=yes \u6fc0\u6d3b\u4e0a\u4f20\u548c\u4e0b\u4f20\u7684\u65e5\u5fd7
Xferlog_std_format=yes \u4f7f\u7528\u6807\u51c6\u7684\u65e5\u5fd7\u683c\u5f0f
Ftpd_banner=XXXXX \u6b22\u8fce\u4fe1\u606f
Pam_service_name=vsftpd \u9a8c\u8bc1\u65b9\u5f0f *
Listen=yes \u72ec\u7acb\u7684VSFTPD\u670d\u52a1\u5668 *
Anon_upload_enable=yes \u5f00\u653e\u4e0a\u4f20\u6743\u9650
Anon_mkdir_write_enable=yes \u53ef\u521b\u5efa\u76ee\u5f55\u7684\u540c\u65f6\u53ef\u4ee5\u5728\u6b64\u76ee\u5f55\u4e2d\u4e0a\u4f20\u6587\u4ef6
Write_enable=yes \u5f00\u653e\u672c\u5730\u7528\u6237\u5199\u7684\u6743\u9650
Anon_other_write_enable=yes \u533f\u540d\u5e10\u53f7\u53ef\u4ee5\u6709\u5220\u9664\u7684\u6743\u9650
Anon_world_readable_only=no \u653e\u5f00\u533f\u540d\u7528\u6237\u6d4f\u89c8\u6743\u9650
Ascii_upload_enable=yes \u542f\u7528\u4e0a\u4f20\u7684ASCII\u4f20\u8f93\u65b9\u5f0f
Ascii_download_enable=yes \u542f\u7528\u4e0b\u8f7d\u7684ASCII\u4f20\u8f93\u65b9\u5f0f
Banner_file=\/var\/vsftpd_banner_file \u7528\u6237\u8fde\u63a5\u540e\u6b22\u8fce\u4fe1\u606f\u4f7f\u7528\u7684\u662f\u6b64\u6587\u4ef6\u4e2d\u7684\u76f8\u5173\u4fe1\u606f
Idle_session_timeout=600(\u79d2) \u7528\u6237\u4f1a\u8bdd\u7a7a\u95f2\u540e10\u5206\u949f
Data_connection_timeout=120\uff08\u79d2\uff09 \u5c06\u6570\u636e\u8fde\u63a5\u7a7a\u95f22\u5206\u949f\u65ad
Accept_timeout=60\uff08\u79d2\uff09 \u5c06\u5ba2\u6237\u7aef\u7a7a\u95f21\u5206\u949f\u540e\u65ad
Connect_timeout=60\uff08\u79d2\uff09 \u4e2d\u65ad1\u5206\u949f\u540e\u53c8\u91cd\u65b0\u8fde\u63a5
Local_max_rate=50000\uff08bite\uff09 \u672c\u5730\u7528\u6237\u4f20\u8f93\u738750K
Anon_max_rate=30000\uff08bite\uff09 \u533f\u540d\u7528\u6237\u4f20\u8f93\u738730K
Pasv_min_port=50000 \u5c06\u5ba2\u6237\u7aef\u7684\u6570\u636e\u8fde\u63a5\u7aef\u53e3\u6539\u5728
Pasv_max_port=60000 50000—60000\u4e4b\u95f4
Max_clients=200 FTP\u7684\u6700\u5927\u8fde\u63a5\u6570
Max_per_ip=4 \u6bcfIP\u7684\u6700\u5927\u8fde\u63a5\u6570
Listen_port=5555 \u4ece5555\u7aef\u53e3\u8fdb\u884c\u6570\u636e\u8fde\u63a5
Local_enble=yes \u672c\u5730\u5e10\u6237\u80fd\u591f\u767b\u9646
Write_enable=no \u672c\u5730\u5e10\u6237\u767b\u9646\u540e\u65e0\u6743\u5220\u9664\u548c\u4fee\u6539\u6587\u4ef6
\u4e0b\u9762\u8fd9\u662f\u4e00\u7ec4
Chroot_local_user=yes \u672c\u5730\u6240\u6709\u5e10\u6237\u90fd\u53ea\u80fd\u5728\u81ea\u5bb6\u76ee\u5f55
Chroot_list_enable=yes \u6587\u4ef6\u4e2d\u7684\u540d\u5355\u53ef\u4ee5\u8c03\u7528
Chroot_list_file=\/\u4efb\u610f\u6307\u5b9a\u7684\u8def\u5f84\/vsftpd.chroot_list \u524d\u63d0\u662fchroot_local_user=no
\u8fd9\u53c8\u662f\u4e00\u7ec4
Userlist_enable=yes \u5728\u6307\u5b9a\u7684\u6587\u4ef6\u4e2d\u7684\u7528\u6237\u4e0d\u53ef\u4ee5\u8bbf\u95ee
Userlist_deny=yes
Userlist_file=\/\u6307\u5b9a\u7684\u8def\u5f84\/vsftpd.user_list
\u53c8\u5f00\u59cb\u5355\u7684\u4e86
Banner_fail=\/\u8def\u5f84\/\u6587\u4ef6\u540d \u8fde\u63a5\u5931\u8d25\u65f6\u663e\u793a\u6587\u4ef6\u4e2d\u7684\u5185\u5bb9
Ls_recurse_enable=no
Async_abor_enable=yes
one_process_model=yes
Listen_address=10.2.2.2 \u5c06\u865a\u62df\u670d\u52a1\u7ed1\u5b9a\u5230\u67d0\u7aef\u53e3
Guest_enable=yes \u865a\u62df\u7528\u6237\u53ef\u4ee5\u767b\u9646
Guest_username=\u6240\u8bbe\u7684\u7528\u6237\u540d \u5c06\u865a\u62df\u7528\u6237\u6620\u5c04\u4e3a\u672c\u5730\u7528\u6237
User_config_dir=\/\u4efb\u610f\u6307\u5b9a\u7684\u8def\u5f84\/\u4e3a\u7528\u6237\u7b56\u7565\u81ea\u5df1\u6240\u5efa\u7684\u6587\u4ef6\u5939 \u6307\u5b9a\u4e0d\u540c\u865a\u62df\u7528\u6237\u914d\u7f6e\u6587\u4ef6\u7684\u8def\u5f84
\u53c8\u662f\u4e00\u7ec4
Chown_uploads=yes \u6539\u53d8\u4e0a\u4f20\u6587\u4ef6\u7684\u6240\u6709\u8005\u4e3aroot
Chown_username=root
\u53c8\u662f\u4e00\u7ec4
Deny_email_enable=yes \u662f\u5426\u5141\u8bb8\u7981\u6b62\u533f\u540d\u7528\u6237\u4f7f\u7528\u67d0\u4e9b\u90ae\u4ef6\u5730\u5740
Banned_email_file=\/\/\u4efb\u610f\u6307\u5b9a\u7684\u8def\u5f84\/xx\/
\u53c8\u662f\u5355\u7684
Pasv_enable=yes \u670d\u52a1\u5668\u7aef\u7528\u88ab\u52a8\u6a21\u5f0f
User_config_dir=\/\u4efb\u610f\u6307\u5b9a\u7684\u8def\u5f84\/\/\u4efb\u610f\u6587\u4ef6\u76ee\u5f55 \u6307\u5b9a\u865a\u62df\u7528\u6237\u5b58\u653e\u914d\u7f6e\u6587\u4ef6\u7684\u8def\u5f84<\/p>\n<\/p>\n

vsFTP\u670d\u52a1\u5668\u7684\u7ef4\u62a4<\/strong><\/p>\n

\u73b0\u5728\u8fd9\u91cc\u8fd8\u6ca1\u6709\u5173\u4e8e\u7ef4\u62a4vsftp\u670d\u52a1\u5668\u7684\u8d44\u6599\u3002\u6b22\u8fce\u5927\u5bb6\u7f16\u8f912
vsFTP\u4f7f\u7528\u7684\u4e00\u4e9b\u8865\u5145
\u8865\u5145\u4e00\uff1a\u5982\u4f55\u6709\u9009\u62e9\u7684\u628a\u7528\u6237\u9650\u5236\u5728\u5bb6\u76ee\u5f55\u4e2d\u5462\uff1f<\/p>\n

\u6211\u4eec\u8981\u81ea\u5df1\u5efa\u4e00\u4e2a\u6587\u4ef6\uff0c\u5728\/etc\u76ee\u5f55\u4e2d
#touch \/etc\/vsftpd.chroot_list<\/p>\n

\u4ee5beinan\u548cnanbei\u8fd9\u4e24\u4e2a\u7528\u6237\u9650\u5236\u5728\u4ed6\u4eec\u6240\u5728\u7684\u5bb6\u76ee\u5f55\u4e2d\uff0c\u800c\u5176\u5b83\u7684FTP\u7528\u6237\u4e0d\u505a\u6b64\u9650\u5236\u3002<\/p>\n

\u5728vsftpd.chroot_list\u8fd9\u4e2a\u6587\u4ef6\u4e2d\uff0c\u628abeinan\u548cnanbei\u6dfb\u4e0a\u53bb\u5c31\u884c\uff0c\u6ce8\u610f\uff0c\u6bcf\u4e2a\u7528\u6237\u5360\u4e00\u884c\u3002
beinan
nanbei<\/p>\n

\u7136\u540e\u6539\/etc\/vsftpd\/vsftpd.conf\u6587\u4ef6\uff0c\u627e\u5982\u4e0b\u7684\u4e24\u884c
#chroot_list_enable=YES
#chroot_list_file=\/etc\/vsftpd.chroot_list<\/p>\n

\u628a\u524d\u9762\u7684#\u53f7\u53bb\u6389\uff0c\u4e5f\u5c31\u662f\u8fd9\u6837\u7684
chroot_list_enable=YES
chroot_list_file=\/etc\/vsftpd.chroot_list<\/p>\n

\u5982\u679c\u6ca1\u6709\u8fd9\u6837\u7684\u4e24\u884c\uff0c\u5c31\u53ef\u4ee5\u81ea\u5df1\u6dfb\u52a0\u4e0a\u53bb\u4e5f\u662f\u4e00\u6837\u7684\u3002<\/p>\n

\u8bbe\u7f6e\u597d\u540e\uff0c\u91cd\u65b0vsFTPD\u670d\u52a1\u5668\u3002<\/strong><\/p>\n

\u8865\u5145\u4e00\u4e4b\u8865\u5145\uff1a\u5982\u4f55\u628a\u7cfb\u7edf\u5185\u6240\u6709\u7684FTP\u7528\u6237\u90fd\u9650\u5236\u5728\u5bb6\u76ee\u5f55\u4e2d\u5462\uff1f\uff1f\u7ecfjuliaugong\u5144\u7684\u63d0\u793a\uff0c\u6211\u67e5\u627e\u4e86vsFTPd\u7684\u6d0b\u6587\u8bf4\u660e\uff0c\u8bc1\u660e\u8fd9\u4e2a\u9009\u9879\u662f\u4e00\u5200\u5207\u7684\u89e3\u51b3\u6240\u6709\u7684\u7528\u6237\u90fd\u80fd\u9650\u5236\u5728\u5bb6\u76ee\u5f55\u4e2d<\/p>\n

\u6211\u4eec\u53ef\u4ee5\u901a\u8fc7\u66f4\u6539vsftpd.conf\u6587\u4ef6\uff0c\u52a0\u5165\u5982\u4e0b\u7684\u4e00\u884c
chroot_local_user=YES<\/p>\n

\u6539\u5b8c\u914d\u5236\u6587\u4ef6\uff0c\u4e0d\u8981\u5fd8\u8bb0\u91cd\u542fvsFTPd\u670d\u52a1\u5668<\/p>\n

[root@linuxsir001 root]# \/etc\/init.d\/vsftpd restart
\u5173\u95ed vsftpd\uff1a [ \u786e\u5b9a ]
\u4e3a vsftpd \u542f\u52a8 vsftpd\uff1a [ \u786e\u5b9a ]
[root@linuxsir001 root]#
\u8865\u5145\u4e8c\uff1a\u6253\u5f00vsFTP\u670d\u52a1\u5668\u7684\u65e5\u5fd7\u529f\u80fd<\/strong><\/p>\n

\u628a\u4e0b\u9762xferlog_file\u524d\u9762\u7684#\u53f7\u5bf9\u6389\uff0c\u4e5f\u5c31\u662f\u628avsftp\u7684log\u529f\u80fd\u6253\u5f00\uff0c\u8fd9\u6837\u6211\u4eec\u5c31\u80fd\u5728\/var\/log\u76ee\u5f55\u4e0b\u67e5\u770bvsftpd.log\u3002\u8fd9\u662fvsFTP\u7684\u65e5\u5fd7\u529f\u80fd\uff0c\u8fd9\u5bf9\u4e8e\u6211\u4eec\u6765\u8bf4\u662f\u6781\u4e3a\u91cd\u8981\u7684\u3002
#xferlog_file=\/var\/log\/vsftpd.log
\u8865\u5145\u4e09\uff1a\u5982\u4f55\u8ba9\u7ed1\u5b9aIP\u5230vsFTP\uff1f<\/strong><\/p>\n

\u4e5f\u5c31\u662f\u8bf4\uff0c\u5982\u4f55\u8ba9\u7528\u6237\u53ea\u80fd\u901a\u8fc7\u67d0\u4e2aIP\u6765\u8bbf\u95eeFTP\u3002\u5176\u5b9e\u8fd9\u4e2a\u529f\u80fd\u5f88\u6709\u610f\u601d\u3002\u5982\u679c\u7ed1\u5b9a\u7684\u662f\u5185\u7f51\u7684IP\uff0c\u5916\u90e8\u662f\u6ca1\u6709\u529e\u6cd5\u8bbf\u95ee\u7684\u3002\u5982\u679c\u7ed1\u5b9a\u7684\u662f\u5bf9\u5916\u670d\u52a1\u7684IP\uff0c\u5185\u7f51\u4e5f\u53ea\u80fd\u901a\u8fc7\u5bf9\u5916\u670d\u52a1\u7684IP\u6765\u8bbf\u95eeFTP<\/p>\n

\u5728\/etc\/vsftpd\/vsftpd.conf\u4e2d\u52a0\u4e00\u884c\uff0c\u4ee5\u6211\u7684\u5c40\u57df\u7f51\u4e3a\u4f8b\uff0c\u8bf7\u770b\u7b2c\u4e00\u5e16\u4e2d\u7684\u64cd\u4f5c\u73af\u5883\uff0c\u8fd9\u6837\u5916\u7f51\u5c31\u4e0d\u80fd\u8bbf\u95ee\u6211\u7684FTP\u4e86\uff0c\u5185\u7f51\u4e5f\u53ef\u80fd\u901a\u8fc7192.168.0.2\u6765\u8bbf\u95eeFTP
listen_address=192.168.0.2<\/p>\n

\u52a0\u5b8c\u540e\uff0c\u8981\u91cd\u542fvsFTP\u670d\u52a1\u5668
[root@linuxsir001 root]# \/etc\/init.d\/vsftpd restart
\u5173\u95ed vsftpd\uff1a [ \u786e\u5b9a ]
\u4e3a vsftpd \u542f\u52a8 vsftpd\uff1a [ \u786e\u5b9a ]
[root@linuxsir001 root]#
\u8865\u5145\u56db\uff1a\u5982\u4f55\u8ba9vsFTP\u670d\u52a1\u5668\u9650\u5236\u94fe\u63a5\u6570\uff0c\u4ee5\u53ca\u6bcf\u4e2aIP\u6700\u5927\u7684\u94fe\u63a5\u6570\uff1f\uff1f<\/strong><\/p>\n

\u7b54\uff1a\u5e94\u8be5\u6539vsFTP\u670d\u52a1\u5668\u7684\u914d\u5236\u6587\u4ef6vsftpd.conf\uff0c\u52a0\u5165\u4e0b\u9762\u7684\u4e24\u884c\uff1a
max_clients=\u6570\u5b57
max_per_ip=\u6570\u5b57<\/p>\n

\u4e3e\u4f8b\uff1a\u6211\u60f3\u8ba9\u6211\u7684vsFTP\u6700\u5927\u652f\u6301\u94fe\u63a5\u6570\u4e3a100\u4e2a\uff0c\u6bcf\u4e2aIP\uff0c\u6700\u591a\u80fd\u652f\u63015\u4e2a\u94fe\u63a5\uff0c\u6240\u4ee5\u6211\u5e94\u8be5\u5728vsftpd.conf\u4e2d\u52a0\u4e0a\u5982\u4e0b\u7684\u4e24\u884c\uff1a
max_clients=100
max_per_ip=5<\/p>\n

\u6539\u597d\u4e86\u914d\u5236\u6587\u4ef6\uff0c\u4e0d\u8981\u5fd8\u8bb0\u542f\u52a8vsftp\u670d\u52a1\u5668\u3002<\/p>\n

\u8865\u5145\u4e94\uff1a\u5982\u4f55\u9650\u5236\u4e0b\u8f7d\u7684\u901f\u5ea6\uff1f<\/strong><\/p>\n

anon_max_rate=\u6570\u5b57 \u6ce8\uff1a\u8fd9\u662f\u533f\u540d\u7684\u4e0b\u8f7d\u901f\u5ea6 local_max_rate=\u6570\u5b57 \u6ce8\uff1a\u8fd9\u662fvsFTP\u670d\u52a1\u5668\u4e0a\u666e\u901a\u7528\u6237\u7684\u4e0b\u8f7d\u901f\u5ea6<\/p>\n

\u6ce8\uff1a\u8fd9\u4e2a\u6570\u5b57\u7684\u5355\u4f4d\u662f\u5b57\u8282\uff0c\u6240\u4ee5\u6211\u4eec\u8981\u8ba1\u7b97\u4e00\u4e0b\u3002\u6bd4\u5982\u6211\u60f3\u8ba9\u533f\u540d\u7528\u6237\u548cvsFTP\u4e0a\u7684\u7528\u6237\u90fd\u4ee580KB\u4e0b\u8f7d\uff0c\u6240\u4ee5\u8fd9\u4e2a\u6570\u5b57\u5e94\u8be5\u662f1024×80=81920 \u6240\u4ee5\u6211\u4eec\u8981\u5728vsftpd.conf\u4e2d\u52a0\u5165\u4e0b\u9762\u7684\u4e24\u884c
anon_max_rate=81920
local_max_rate=81920<\/p>\n

\u4e0d\u8981\u5fd8\u8bb0\u91cd\u542fvsftpd\u670d\u52a1
\u8865\u5145\u516d\uff1a\u6211\u7684\u786c\u76d8\u7a7a\u95f4\u6709\u9650\uff0c\u600e\u4e48\u529e\uff1f<\/strong><\/p>\n

\u6211\u7684\u786c\u76d8\u7a7a\u95f4\u6709\u9650\uff0c\u5982\u4f55\u628a\u5e10\u53f7ftp\u9ed8\u8ba4\u7684\u8def\u5f84\/var\/ftp\u66f4\u6539\u5230\u522b\u5904\uff1f\u6216\u8005\u662f\uff0c\u6211\u7684linux\u6240\u6709\u7684\u76ee\u5f55\u90fd\u653e\u5728\/\u6839\u5206\u533a\uff0c\u56e0\u4e3a\u7a7a\u95f4\u7d27\u5f20\uff0c\u6211\u80fd\u5426\u628aftp\u8fd9\u4e2a\u7528\u6237\u7684\u9ed8\u8ba4\u8def\u5f84\u653e\u5230\u522b\u7684\u5206\u533a\uff1f<\/p>\n

\u53ef\u4ee5\uff0c\u5e94\u8be5\u5982\u4e0b\u64cd\u4f5c!<\/p>\n

\u9996\u5148\u8981\u628aftp\u8fd9\u4e2a\u7528\u6237\u5220\u9664
#userdel -r ftp<\/p>\n

\u4f1a\u6709\u9519\u8bef\u4fe1\u606f\uff0c\u4e0d\u8fc7\u4e0d\u7528\u7406\uff0c\u8fd9\u662f\u6b63\u5e38\u7684\u3002<\/p>\n

\u7136\u540e\u6211\u4eec\u518d\u628a\u8fd9\u4e2a\u7528\u6237\u6dfb\u52a0\u4e0a\uff0c\u6bd4\u5982\u6211\u60f3\u4e3a\u5e10\u53f7ftp\u7684\u5bb6\u76ee\u5f55\u8bbe\u7f6e\u5728\/mnt\/LinG\/ftp\uff0c\u6211\u4eec\u5c31\u53ef\u4ee5\u5982\u4e0b\u64cd\u4f5c
[root@linuxsir001 root]# mkdir \/mnt\/LinG
[root@linuxsir001 root]# adduser -d \/mnt\/LinG\/ftp -g ftp -s \/sbin\/nologin ftp<\/p>\n

\u4ec5\u4ec5\u662f\u8fd9\u6837\u505a\u8fd8\u4e0d\u884c\uff0c\u56e0\u4e3a\u8fd9\u6837\u8fd8\u662f\u4e0d\u80fd\u8ba9\u533f\u540d\u7528\u6237\u627e\u5230\u5b83\u7684\u5bb6\u76ee\u5f55\uff0c\u6240\u4ee5\u6211\u4eec\u5fc5\u987b\u6539\u53d8\/mnt\/LinG\/ftp\u8fd9\u4e2a\u76ee\u5f55\u7684\u6743\u9650\u3002
[root@linuxsir001 root]# chmod 755 \/mnt\/LinG\/ftp\/
[root@linuxsir001 root]# chown -R root.root \/mnt\/LinG\/ftp\/<\/p>\n

\u8865\u5145\u4e03\uff1a\u5982\u4f55\u5b9a\u5236\u6b22\u8fce\u4fe1\u606f<\/strong><\/p>\n

\u5982\u4f55\u5728\u6211\u4eec\u767b\u5165\u6709\u4e9bFTP\u4e4b\u540e\uff0c\u4f1a\u51fa\u73b0\u7c7b\u4f3c\uff1a\u6b22\u8fce\u60a8\u6765\u5230LinuxSir FTP\uff0c\u5728\u8fd9\u91cc\uff0c\u60a8\u4f1a\u5f97\u5230\u6700\u771f\u8bda\u7684\u5e2e\u52a9\uff0c\u5982\u679c\u6709\u4ec0\u4e48\u95ee\u9898\u548c\u5efa\u8bae\uff0c\u8bf7\u6765\u4fe1\uff0c\u591a\u8c22\u3002<\/p>\n

\u5b9e\u73b0\u8fd9\u4e2a\u5e76\u4e0d\u96be\uff0c\u6211\u4eec\u53ef\u4ee5\u67e5\u770bvsftpd.cof\u6587\u4ef6\u4e2d\uff0c\u662f\u5426\u6709\u8fd9\u884c\u3002
dirmessage_enable=YES<\/p>\n

\u5982\u679c\u6ca1\u6709\u5c31\u52a0\u4e0a\uff0c\u5982\u679cdirmessage_enable=YES\u524d\u9762\u6709#\u53f7\uff0c\u5c31\u628a#\u53f7\u53bb\u6389\u3002<\/p>\n

\u7136\u540e\u6211\u4eec\u5236\u5b9a\u4e00\u4e2a.message\u6587\u4ef6\uff0c\u5199\u4e0a\u60a8\u60f3\u8981\u5199\u7684\u4e1c\u897f\uff0c\u6bd4\u5982\u662f.message\u7684\u5185\u5bb9\u662f\u5982\u4e0b\u7684\uff1a
\u6b22\u8fce\u60a8\u6765\u5230LinuxSir FTP\uff01
\u5728\u8fd9\u91cc\uff0c\u60a8\u4f1a\u5f97\u5230\u6700\u771f\u8bda\u7684\u5e2e\u52a9\uff1b
\u5982\u679c\u6709\u4ec0\u4e48\u95ee\u9898\u548c\u5efa\u8bae\uff0c\u8bf7\u6765\u4fe1\uff0c\u591a\u8c22\u3002<\/p>\n

\u6211\u4eec\u53ef\u4ee5\u7528\u7f16\u8f91\u5668\u6765\u5199\u8fd9\u4e2a.message\uff0c\u6211\u60f3\u8fd9\u4e2a\u8fc7\u7a0b\u5c31\u4e0d\u7528\u8bf4\u4e86\u5427\u3002<\/p>\n

\u7136\u540e\u6211\u4eec\u628a.message\u8fd9\u4e2a\u6587\u4ef6\u590d\u5236\u5230\u5404\u4e2a\u7528\u6237\u7684\u5bb6\u76ee\u5f55\u4e2d\u3002\u6bd4\u5982\u6211\u7684FTP\u7684\u4e00\u4e2a\u7528\u6237\u662fbeinan\uff0c\u8fd9\u4e2a\u7528\u6237\u6240\u5728\u7684\u5bb6\u76ee\u5f55\u662f\/home\/beinan<\/p>\n

\u6211\u4eec\u5c31\u8981\u628a.message\u653e\u5728\/home\/beinan\u8fd9\u4e2a\u76ee\u5f55\u4e0b\u3002\u5982\u679c\u7cfb\u7edf\u7528\u6237ftp\uff0c\u4ed6\u7684\u76ee\u5f55\u5c31\u662f\/var\/ftp\u8fd9\u4e2a\u76ee\u5f55\uff0c\u8fd9\u4e2a\u662f\u9ed8\u8ba4\u7684\uff0c\u5f53\u533f\u540d\u7528\u6237\u767b\u5165\u65f6\u5c31\u8bbf\u95ee\u7684\u662f\/var\/ftp\u8fd9\u4e2a\u76ee\u5f55\u3002\u6211\u4eec\u8981\u8ba9\u533f\u540d\u7528\u6237\u80fd\u770b\u5230\u6b22\u8fce\u4fe1\u606f\u3002\u5c31\u8981\u628a.message\u653e\u5728\/var\/ftp\u76ee\u5f55\u4e2d\u3002\u5176\u5b83\u7684\u7528\u6237\uff0c\u4e5f\u65e0\u975e\u5c31\u662f\u7c7b\u4f3c\u7684\u64cd\u4f5c\u3002<\/p>\n

\u8865\u5145\u516b\uff1a\u5982\u4f55\u5b9e\u73b0\u865a\u62df\u8def\u5f84\uff1f<\/strong><\/p>\n

\u6bd4\u5982\uff1a \/home\/a \u6620\u5c04\u4e3aftp:\/\/localhost\/a\/home\/b\/c<\/a> \u5219\u4e3aftp:\/\/localhost\/c<\/a><\/p>\n

\u5176\u5b9e\u8fd9\u4e2a\u4e0d\u80fd\u8bf4\u662fvsFTPd\u7684\u5185\u5bb9\uff0c\u5176\u5b9e\u6211\u4eec\u65e9\u5c31\u63a5\u89e6\u8fc7\u4e86\uff0c\u53ef\u80fd\u6211\u4eec\u6ca1\u6709\u6ce8\u610f\uff0c\u6211\u4eec\u53ef\u4ee5\u901a\u8fc7\u5982\u4e0b\u7684\u65b9\u6cd5\u6765\u5b9e\u73b0\u3002
#mount –bind [\u539f\u6709\u7684\u76ee\u5f55] [\u65b0\u76ee\u5f55]<\/p>\n

\u6bd4\u5982\u6211\u7684ftp\u7684\u9ed8\u8ba4\u76ee\u5f55\u662f\/var\/ftp\uff0c\u6211\u60f3\u628a\/mnt\/LinG\/WinSoft\u6587\u4ef6\u5939\uff0c\u6620\u5c04\u5230\/var\/ftp\u76ee\u5f55\u4e2d\uff0c\u6211\u5c31\u5982\u4e0b\u64cd\u4f5c<\/p>\n

\u6211\u4eec\u8981\u5148\u5728\/var\/ftp\u76ee\u5f55\u4e2d\u5efa\u4e00\u4e2a\u76ee\u5f55
#mkdir \/var\/ftp\/WinSoft<\/p>\n

\u7136\u540e\u6267\u884cmount\u547d\u4ee4
#mount –bind \/mnt\/LinG\/WinSoft \/var\/ftp\/WinSoft<\/p>\n

\u8fd9\u6837\u5c31OK\u4e86\u3002<\/p>\n

\u8865\u5145\u4e5d\uff1a\u5982\u4f55\u4e0a\u533f\u540d\u8bbf\u95ee\u3001\u4e0a\u4f20\uff0c\u5e76\u652f\u6301\u4e0b\u8f7d\u548c\u6267\u884c\uff1f<\/strong><\/p>\n

\u5728\u9ed8\u8ba4\u7684\u60c5\u51b5\u4e0b\uff0cvsftp\u662f\u4e0d\u652f\u6301\u533f\u540d\u7528\u6237\u7684\u8bbf\u95ee\u7684\uff0c\u6240\u4ee5\u6211\u4eec\u8981\u81ea\u5df1\u6253\u5f00\u76f8\u5e94\u7684\u9009\u9879\u3002\u73b0\u5728\u6211\u9488\u5bf9\u8fd9\u4e2a\u95ee\u9898\uff0c\u6211\u4eec\u8981\u6253\u5f00\u5982\u4e0b\u7684\u9009\u9879\u3002
anonymous_enable=YES \u6ce8\uff1a\u5141\u8bb8\u533f\u540d\u8bbf\u95ee
anon_upload_enable=YES \u6ce8\uff1a\u5141\u8bb8\u4e0a\u4f20
anon_mkdir_write_enable=YES \u6ce8\uff1a\u5141\u8bb8\u5efa\u7acb\u76f8\u5e94\u7684\u76ee\u5f55
anon_umask=022 \u628a\u4e0a\u4f20\u5230FTP\u7684\u6587\u4ef6\u6216\u8005\u76ee\u5f55\u6539\u53d8\u6743\u9650<\/p>\n

\u5f53\u7136\u6253\u5f00\u8fd9\u4e9b\u9009\u9879\u8fd8\u662f\u4e0d\u884c\u7684\uff0c\u6211\u4eec\u8fd8\u8981\u8ba9\u533f\u540d\u5199\u5165\u6587\u4ef6\u7684\u4e0a\u4e00\u7ea7\u76ee\u5f55\u6709\u5199\u5165\u6743\uff0c\u4ee5\u6211\u6240\u505a\u7684FTP\u4e3a\u4f8b\uff0c\u6211\u6240\u505a\u7684FTP\u7684\u533f\u540d\u8bbf\u95ee\u7684\u76ee\u5f55\u662f\/var\/ftp\uff0c\u5728vsFTPd\u4e2d\uff0c\/var\/ftp\u8fd9\u4e2a\u76ee\u5f55\u662f\u4e0d\u80fd\u8ba9\u533f\u540d\u7528\u6237\u6709\u5199\u5165\u6743\u9650\u7684\uff0c\u8fd9\u662f\u4e3a\u4e86\u5b89\u5168\u8003\u8651\uff0c\u6240\u4ee5\u6211\u4eec\u5fc5\u987b\u81ea\u5df1\u5728\/var\/ftp\u76ee\u5f55\u4e2d\u5efa\u4e00\u4e2a\u76ee\u5f55\uff0c\u8ba9\u8fd9\u4e2a\u76ee\u5f55\u6709\u5199\u5165\u6743\u3002<\/p>\n

\u6bd4\u5982\uff1a\u6211\u5728\/var\/ftp\u76ee\u5f55\u5efa\u4e00\u4e2aupload\u76ee\u5f55\uff0c\u7136\u540e\u628a\u5b83\u7684\u6743\u9650\u8bbe\u7f6e\u6210777\uff0c\u8fd9\u6837\u533f\u540d\u7528\u6237\u5c31\u80fd\u5199\u5165\u4e86\u3002
#mkdir \/var\/ftp\/upload
#chmod 777 \/var\/ftp\/upload<\/p>\n

\u6539\u4e86\u4e00\u7cfb\u5217\u7684\u6587\u4ef6\uff0c\u4e0d\u8981\u5fd8\u8bb0\u91cd\u542fvsFTPd\u670d\u52a1\u5668<\/p>\n

\u6211\u662f\u7528standalone\u6a21\u5f0f\u7684\uff0c\u5f53\u7136\u7528\u4e0b\u9762\u7684\u65b9\u6cd5
[root@linuxsir001 root]# service vsftpd restart
\u5173\u95ed vsftpd\uff1a [ \u786e\u5b9a ]
\u4e3a vsftpd \u542f\u52a8 vsftpd\uff1a [ \u786e\u5b9a ]
[root@linuxsir001 root]#<\/p>\n

\u5982\u679c\u60a8\u7528\u7684\u662fxinetd\u6a21\u5f0f\u6765\u542f\u52a8vsFTPd\uff0c\u6211\u4eec\u8981\u91cd\u542fxinetd\u670d\u52a1\u5668
[root@linuxsir001 root]# service xinetd restart
\u505c\u6b62 xinetd\uff1a [ \u786e\u5b9a ]
\u542f\u52a8 xinetd\uff1a [ \u786e\u5b9a ]
[root@linuxsir001 root]# ]<\/p>\n

\u8865\u5145\u5341\uff1a\u901a\u8fc7pam\u8ba4\u8bc1\u65b9\u5f0f\uff0c\u6dfb\u52a0\u865a\u62df\u7528\u6237<\/strong><\/p>\n

\u901a\u8fc7pam\u8ba4\u8bc1\uff0c\u7528db_load\u6dfb\u52a0\u7528\u6237\uff0c\u662f\u771f\u6b63\u7684\u865a\u62df\u7528\u6237\u3002\u73b0\u5728\u6211\u4eec\u7b80\u5355\u7684\u4ecb\u7ecd\u4e00\u4e0b\uff0c\u901a\u8fc7\u4ee5\u540e\u7684\u5b66\u4e60\uff0c\u6211\u4eec\u518d\u6df1\u5165\u8865\u5145\uff1a<\/p>\n

1\u3002\u5728\/etc\/pam.d\/\u76ee\u5f55\u4e2d\u521b\u5efa\u4e00\u4e2a\u6587\u4ef6ftp
[root@linuxsir001 root]# touch \/etc\/pam.d\/ftp<\/p>\n

2\u3002\u5728\/etc\/pam.d\/ftp\u91cc\u9762\u52a0\u4e0a\u5982\u4e0b\u7684\u4e24\u884c
auth required \/lib\/security\/pam_userdb.so db=\/etc\/vsftpd_login
account required \/lib\/security\/pam_userdb.so db=\/etc\/vsftpd_login<\/p>\n

3\u3002\u521b\u5efa\u4e00\u7cfb\u7edf\u7684\u7528\u6237\u540d\u7528\u5bc6\u7801\u7684\u6587\u4ef6logins.txt
[root@linuxsir001 root]# touch logins.txt<\/p>\n

\u5728logins.txt\u6587\u4ef6\u4e2d\uff0c\u8f93\u5165\u5982\u4e0b\u7684\u5185\u5bb9\u3002\u8fd9\u4e2a\u5185\u5bb9\u60a8\u53ef\u4ee5\u81ea\u5df1\u6765\u5b9a\u3002\u6bd4\u5982\u6211\u4e0b\u9762\u7684\u3002\u5176\u5b9elinuxsir007\u662fFTP\u7684\u865a\u62df\u7528\u6237\u540d\uff0c123456\u662flinuxsir007\u7684\u5bc6\u7801\uff1blinuxsir008\u662f\u865a\u62df\u7528\u6237\u540d\uff0c234567\u662flinuxsir008\u7684\u5bc6\u7801\uff0c\u4ee5\u6b64\u7c7b\u63a8\uff0c\u60a8\u60f3\u52a0\u5165\u51e0\u4e2a\u5c31\u662f\u51e0\u4e2a\uff1b\u4e0b\u9762\u662f\u6211\u6dfb\u52a0\u7684FTP\u7684\u865a\u62df\u7528\u6237\u540d\u548c\u5bc6\u7801\u3002
linuxsir007
123456
linuxsir008
234567
linuxsir009
567890
linuxsir010
678901
linuxsir011
789012<\/p>\n

4\u3002\u521b\u5efa\u4e00\u4e2a\u771f\u5b9e\u7684\u7528\u6237\u540dlinuxsir006\uff0c\u8fd9\u4e2alinuxsir006\u7684\u7528\u6237\uff0c\u6240\u5728\u7684\u5bb6\u76ee\u5f55\u7531\u60a8\u6765\u5b9a\u3002\u6211\u5728\u8fd9\u91cc\u4e0d\u591a\u8bf4\u4e86\u3002\u6211\u662f\u6309\u7cfb\u7edf\u9ed8\u8ba4\u7684\u6765\u6dfb\u52a0\u7684\u3002
[root@linuxsir001 root]# useradd linuxsir006<\/p>\n

5\u3002\u628a\/etc\/hosts\u590d\u5236\u5230\/home\/linuxsir006\uff0c\u5e76\u6539\u53d8\u5b83\u7684\u5c5e\u4e3b
[root@linuxsir001 root]#cp \/etc\/hosts \/home\/linuxsir006\/hosts
[root@linuxsir001 root]#chown linuxsir006.linuxsir006 \/home\/linuxsir006\/hosts<\/p>\n

6\u3002\u901a\u8fc7db_load\u6765\u521b\u5efa\u865a\u62df\u7528\u6237\u7684\u5e93\u6587\u4ef6\u3002\u6211\u4eec\u5728\u524d\u9762\u5efa\u7684logins.txt\u6587\u4ef6\uff0c\u6211\u662f\u653e\u5728\u4e86\/root\u7528\u6237\u76ee\u5f55\u4e0b\u3002\u6240\u4ee5\u54b1\u4eec\u5f97\u628a\u76ee\u5f55\u5207\u6362\u5230\/root\u76ee\u5f55\u6765\u521b\u5efa\u865a\u62df\u7528\u6237\u7684\u5e93\u6587\u4ef6\u3002
[root@linuxsir001 root]# db_load -T -t hash -f logins.txt \/etc\/vsftpd_login.db<\/p>\n

7\u3002\u66f4\u6539vsftpd.conf\u6587\u4ef6\uff0c\u52a0\u5165\u5982\u4e0b\u7684\u51e0\u884c
pam_service_name=ftp
guest_enable=YES
guest_username=linuxsir006
anon_world_readable_only=NO<\/p>\n

8\u3002\u91cd\u542fvsFTPd\u670d\u52a1\u5668\uff1b\u6539\u4e86\u4e00\u7cfb\u5217\u7684\u6587\u4ef6\uff0c\u4e0d\u8981\u5fd8\u8bb0\u91cd\u542fvsFTPd\u670d\u52a1\u5668<\/p>\n

\u6211\u662f\u7528standalone\u6a21\u5f0f\u7684\uff0c\u5f53\u7136\u7528\u4e0b\u9762\u7684\u65b9\u6cd5
[root@linuxsir001 root]# service vsftpd restart
\u5173\u95ed vsftpd\uff1a [ \u786e\u5b9a ]
\u4e3a vsftpd \u542f\u52a8 vsftpd\uff1a [ \u786e\u5b9a ]
[root@linuxsir001 root]#<\/p>\n

\u5982\u679c\u60a8\u7528\u7684\u662fxinetd\u6a21\u5f0f\u6765\u542f\u52a8vsFTPd\uff0c\u6211\u4eec\u8981\u91cd\u542fxinetd\u670d\u52a1\u5668
[root@linuxsir001 root]# service xinetd restart
\u505c\u6b62 xinetd\uff1a [ \u786e\u5b9a ]
\u542f\u52a8 xinetd\uff1a [ \u786e\u5b9a ]
[root@linuxsir001 root]#<\/p>\n

9\u3002\u5982\u679c\u60a8\u60f3\u8ba9\u7528\u6237\u767b\u5165FTP\u65f6\uff0c\u767b\u5165\u6210\u529f\u7684\u76f8\u5e94\u7684\u4fe1\u606f\uff0c\u8bf7\u628a\u60a8\u5236\u4f5c\u7684.message\u590d\u5236\u5230\u60a8\u7684\u7528\u6237\u7684\u5bb6\u76ee\u5f55\u4e2d\uff0c\u8fd9\u65b9\u9762\u7684\u8bf7\u53c2\u8003\u524d\u9762\u7684\u8865\u5145\u3002<\/p>\n

10\u3002\u6d4b\u8bd5\uff1a
[root@linuxsir001 root]# ftp 192.168.0.1
Connected to 192.168.0.1.
220 (vsFTPd 1.1.3)
530 Please login with USER and PASS.
530 Please login with USER and PASS.
KERBEROS_V4 rejected as an authentication type
Name (192.168.0.1:root): linuxsir007
331 Please specify the password.
Password:
230-\u6b22\u8fce\u5149\u4e34LinuxSir\u81ea\u7531FTP
230-\u5728\u8fd9\u91cc\uff0c\u60a8\u5c06\u5f97\u5230\u6700\u771f\u8bda\u7684\u5e2e\u52a9\uff01
230-\u672c\u7ad9\u9650\u5ea6\u4e3a30KB\uff01
230-\u6bcf\u4e2aIP\u9650\u56db\u4e2a\u7ebf\u7a0b
230-\u8bf7\u5927\u5bb6\u9075\u5b88FTP\u7684\u6709\u5173\u89c4\u5b9a\u3002
230-\u591a\u8c22\u5408\u4f5c\uff01
230-
230-LinuxSir\u7ba1\u7406\u90e8
230 Login successful. Have fun.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> ls
227 Entering Passive Mode (192,168,0,1,85,171)
150 Here comes the directory listing.
-rw-r–r– 1 ftp ftp 174 Jun 01 12:59 hosts
drwxr-xr-x 3 ftp ftp 4096 Jun 01 13:29 linuxsir008
drwxr-xr-x 2 ftp ftp 4096 Jun 01 13:24 sun
226 Directory send OK.
ftp>
\u8865\u5145\u5341\u4e00\uff1a\u5982\u4f55\u628a\u7cfb\u7edf\u9ed8\u8ba4\u7528standalone\u542f\u52a8\u6539\u4e3a\u7528xinetd\u542f\u52a8\uff1f<\/strong><\/p>\n

\u5982\u4f55\u628aRedhat 9.0\u4e2d\u7cfb\u7edf\u9ed8\u8ba4\u5b89\u88c5\u7684vsftpd-1.1.3-8.i386.rpm\uff0c\u7cfb\u7edf\u9ed8\u8ba4vsFTPd\u662f\u7528standalone\u542f\u52a8\u65b9\u5f0f \uff0c\u6539\u4e3axinetd\u542f\u52a8\u65b9\u5f0f \uff1f\u5982\u679c\u662f\u7528\u6e90\u7801\u5305\u5b89\u88c5\u7684\uff0c\u5b89\u88c5\u540e\u5c31\u662fxinetd\u6a21\u5f0f\uff0c\u5982\u679c\u662f\u7528RPM\u5305\u5b89\u88c5\u7684\uff0c\u5728Redhat 9.0\u4e2d\uff0c\u5e94\u8be5\u7528\u4e0b\u9762\u7684\u65b9\u6cd5\u6765\u89e3\u51b3\u3002<\/p>\n

1.\u5728\/etc\/xinetd.d\/\u76ee\u5f55\u4e2d\u521b\u5efa\u4e00\u4e2a\u6587\u4ef6vsftpd
[root@linuxsir001 root]# touch \/etc\/xinetd.d\/vsftpd<\/p>\n

\/etc\/xinetd.d\/vsftpd\u5185\u5bb9\u5982\u4e0b\uff1a
service ftp
{
socket_type = stream
wait = no
user = root
server = \/usr\/sbin\/vsftpd
# server_args =
# log_on_success += DURATION USERID
# log_on_failure += USERID
nice = 10
disable = no
}<\/p>\n

2\u3002\u590d\u5236vsftpd.conf\u5230\/etc\/\u76ee\u5f55\u4e0b\uff0c\u56e0\u4e3axinetd\u5bf9vsFTPd\u914d\u5236\u6587\u4ef6\u5e94\u8be5\u5728\/etc\u76ee\u5f55\u4e0b\uff0c\u6240\u4ee5\u6211\u4eec\u5c31\u5fc5\u987b\u628a\u8fd9\u4e2a\u6587\u4ef6\u590d\u5236\u5230\/etc\u76ee\u5f55\u4e0b\uff0c\u5426\u5219\u4f1a\u51fa\u73b0\u7cfb\u7edf\u4e2dlocal\u7528\u6237\u65e0\u6cd5\u767b\u5165\uff0c\u4e5f\u5c31\u662f\u8bf4\uff0c\u4e0d\u590d\u5236\u8fd9\u4e2a\u6587\u4ef6\u4f1a\u51fa\u73b0ftp\u975e\u533f\u540d\u7528\u6237\u65e0\u6cd5\u8bbf\u95ee\uff0c\u53ea\u80fd\u7528\u533f\u540d\u7528\u6237\u8bbf\u95ee\u3002
[root@linuxsir001 root]# cp \/etc\/vsftpd\/vsftpd.conf \/etc\/vsftpd.conf<\/p>\n

3\u3002\u66f4\u6539\u914d\u5236\u6587\u4ef6\/etc\/vsftpd.conf\uff0c\u628a\u5982\u4e0b\u7684\u9879\u6ce8\u6389\uff1a\u4e5f\u5c31\u662f\u628a
listen=YES<\/p>\n

\u6539\u4e3a
#listen=YES<\/p>\n

\u6216\u8005\u662f\u628a\u8fd9\u884c\u5220\u9664\u4e5f\u884c\u3002<\/p>\n

4\u3002\u628a\/etc\/init.d\/vsftpd\u8fd9\u4e2a\u6587\u4ef6\u5220\u9664\u3002\u5176\u5b9e\u6700\u597d\u7684\u5907\u4efd\u5230\u522b\u5904\uff0c\u56e0\u4e3a\u6211\u4eec\u6709\u65f6\u5b9e\u9a8c\u6765\u5b9e\u9a8c\u53bb\uff0c\u53ef\u80fd\u8fd8\u4f1a\u8f6c\u5230standalone\u6a21\u5f0f\u542f\u52a8\u3002\u6211\u5c31\u76f4\u63a5\u79fb\u52a8\u5230\u522b\u7684\u76ee\u5f55\uff0c\u6bd4\u5982\u662f\/root\u4e0b\u9762\u7684backup\u76ee\u5f55\u3002<\/p>\n

[root@linuxsir001 root]#mkdir \/root\/backup
[root@linuxsir001 root]# mv \/etc\/init.d\/vsftpd \/root\/backup<\/p>\n

5\u3002\u8fd0\u884cntsysv\uff0c\u628avsftpd\u7684\u670d\u52a1\u53d6\u6d88
[root@linuxsir001 root]#ntsysv
[ ] vsftpd<\/p>\n

6\u3002\u91cd\u542fxinetd\u670d\u52a1
[root@linuxsir001 root]# service xinetd restart<\/p>\n","protected":false},"excerpt":{"rendered":"

PS\uff1a<\/strong>\u4eca\u5929\u88c5\u4e86\u4e2aCentOS,\u5b89\u88c5\u9009\u62e9\u5305\u7684\u65f6\u5019\u5c31\u9009\u4e86\u5f00\u53d1\u5305\u548cvsftp\u7ed3\u679c\uff0c\u914d\u7f6e\u4e00\u4e0bvsftp\u53d1\u73b0\u8bbf\u95ee\u4e0d\u4e86\uff0c\u5177\u4f53\u5c31\u662f\u62a5\u9519"Can’t connect to remote server. Socket error = #10065.“\u627e\u4e86\u534a\u5929\u8d44\u6599\u540e\u6765\u53d1\u73b0\u662f\u9632\u706b\u5899\u628a\u81ea\u5df1\u7ed9\u6321\u4f4f\u4e86\uff0c\u7ed3\u679cservice vsftpd stop\uff0c\u5c31\u641e\u5b9a\u4e86\u3002<\/p>\n

vsFTP\u670d\u52a1\u5668\u7684\u5b89\u88c5<\/strong><\/p>\n

\u5b89\u88c5\u4e00\u4e2a\u8f6f\u4ef6\u5b9e\u5728\u662f\u4e0d\u8bb8\u8981\u5728\u8fd9\u91cc\u4ecb\u7ecd\uff0c\u56e0\u6b64\uff0c\u8fd9\u91cc\u7684\u5b89\u88c5\u4e3b\u8981\u9488\u5bf9vsFTPd\u670d\u52a1\u5668\u7684\u521d\u7ea7\u914d\u7f6e\u3002<\/p>\n

VSFTPD\u7684\u83dc\u9e1f\u7bc7<\/p>\n

\u7248\u6743\u58f0\u660e\uff1a\u53ef\u4ee5<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[8],"tags":[],"_links":{"self":[{"href":"https:\/\/blog.vimge.com\/wp-json\/wp\/v2\/posts\/1000"}],"collection":[{"href":"https:\/\/blog.vimge.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.vimge.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.vimge.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.vimge.com\/wp-json\/wp\/v2\/comments?post=1000"}],"version-history":[{"count":0,"href":"https:\/\/blog.vimge.com\/wp-json\/wp\/v2\/posts\/1000\/revisions"}],"wp:attachment":[{"href":"https:\/\/blog.vimge.com\/wp-json\/wp\/v2\/media?parent=1000"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.vimge.com\/wp-json\/wp\/v2\/categories?post=1000"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.vimge.com\/wp-json\/wp\/v2\/tags?post=1000"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}