因为安全方面的原因,root用户是默认不能登录ftp服务的。
如果一定要用root登录,则:
1、删除/etc/vsftpd.ftpusers中的root
2、删除/etc/vsftpd.user_list中的root
3、更改/etc/vsftpd/vsftp.conf中的userlist_enabel=NO
4、service vsftpd start
5、setup设置自启动vsftpd服务
[root@uttflying vsftpd]# ftp 192.168.0.5 Connected to 192.168.0.5. 220 Welcome to blah FTP service. 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.5:1): root 331 Please specify the password. Password: 230 Login successful. Remote system type is UNIX. Using binary mode to transfer files. ftp> ll ?Invalid command ftp> ls 227 Entering Passive Mode (192,168,0,5,8,128) 150 Here comes the directory listing. drwxr-xr-x 2 0 0 4096 Nov 05 16:17 2010 drwxr-xr-x 2 0 0 4096 Oct 27 14:27 Desktop drwxr-xr-x 6 500 500 4096 Nov 24 05:24 ExtMail-Solution-Linux-0.2 -rw-r--r-- 1 0 0 35689306 Apr 04 2008 ExtMail-Solution-Linux-0.2.tar.gz drwxr-xr-x 2 0 0 4096 Nov 03 14:48 UTT -rw------- 1 0 0 962 Oct 27 14:17 anaconda-ks.cfg -rw-r--r-- 1 0 0 35447 Nov 03 16:01 install.bak -rw-r--r-- 1 0 0 35447 Oct 27 14:17 install.log -rw-r--r-- 1 0 0 4228 Oct 27 14:15 install.log.syslog -rw-r--r-- 1 0 0 68 Apr 29 2008 md5sum.es_linux-0.2 -rw-r--r-- 1 0 0 599045 Jul 06 2007 mod_jk-1.2.21-apache-2.2.x-linux-i686.so drwxr-xr-x 2 0 0 4096 Nov 03 15:07 myfile drwxr-xr-x 3 0 0 4096 Nov 03 15:25 one -rw-r--r-- 1 0 0 24 Nov 20 23:19 test2010.txt -rw-r--r-- 1 0 0 1541956 Feb 27 2010 tomcat-connectors-1.2.28-src.tar.gz drwxr-xr-x 3 0 0 4096 Nov 03 15:24 two drwxr-xr-x 5 0 0 4096 Nov 11 17:04 utt drwxr-xr-x 8 1000 1000 4096 Nov 26 20:58 vsftpd-2.0.6 -rw-r--r-- 1 0 0 158516 Nov 26 20:54 vsftpd-2.0.6.tar.gz 226 Directory send OK. ftp>