将/etc/vsftpd/user_list /etc/vsftpd/ftpusers root注释掉,重启即可用root登录ftp。
[code][root@localhost ~]# cat /etc/vsftpd/user_list
# vsftpd userlist
# If userlist_deny=NO, only allow users in this file
# If userlist_deny=YES (default), never allow users in this file, and
# do not even prompt for a password.
# Note that the default vsftpd pam config also checks /etc/vsftpd/ftpusers
# for users that are denied.
#root
bin
daemon
adm
lp
sync
shutdown
halt
mail
news
uucp
operator
games
nobody
[root@localhost ~]# cat /etc/vsftpd/ftpusers
# Users that are not allowed to login via ftp
#root
bin
daemon
adm
lp
sync
shutdown
halt
mail
news
uucp
operator
games
nobody
[root@localhost ~]# service vsftpd restart
Shutting down vsftpd: [ OK ]
Starting vsftpd for vsftpd: [ OK ][/code]
[code]
C:\\Documents and Settings\\Administrator>ftp 192.168.1.223
Connected to 192.168.1.223.
220 (vsFTPd 2.0.5)
User (192.168.1.223:(none)): root
331 Please specify the password.
Password:
230 Login successful.
ftp> dir
200 PORT command successful. Consider using PASV.
150 Here comes the directory listing.
drwxr-xr-x 2 0 0 4096 Aug 08 02:56 Desktop
-rw------- 1 0 0 2783 Aug 08 10:17 anaconda-ks.cfg
-rw-r--r-- 1 0 0 48499 Aug 08 10:17 install.log
-rw-r--r-- 1 0 0 5506 Aug 08 10:15 install.log.syslog
226 Directory send OK.
ftp: 收到 283 字节,用时 0.02Seconds 17.69Kbytes/sec.[/code]
[code][root@localhost ~]# cat /etc/vsftpd/user_list
# vsftpd userlist
# If userlist_deny=NO, only allow users in this file
# If userlist_deny=YES (default), never allow users in this file, and
# do not even prompt for a password.
# Note that the default vsftpd pam config also checks /etc/vsftpd/ftpusers
# for users that are denied.
#root
bin
daemon
adm
lp
sync
shutdown
halt
news
uucp
operator
games
nobody
[root@localhost ~]# cat /etc/vsftpd/ftpusers
# Users that are not allowed to login via ftp
#root
bin
daemon
adm
lp
sync
shutdown
halt
news
uucp
operator
games
nobody
[root@localhost ~]# service vsftpd restart
Shutting down vsftpd: [ OK ]
Starting vsftpd for vsftpd: [ OK ][/code]
[code]
C:\\Documents and Settings\\Administrator>ftp 192.168.1.223
Connected to 192.168.1.223.
220 (vsFTPd 2.0.5)
User (192.168.1.223:(none)): root
331 Please specify the password.
Password:
230 Login successful.
ftp> dir
200 PORT command successful. Consider using PASV.
150 Here comes the directory listing.
drwxr-xr-x 2 0 0 4096 Aug 08 02:56 Desktop
-rw------- 1 0 0 2783 Aug 08 10:17 anaconda-ks.cfg
-rw-r--r-- 1 0 0 48499 Aug 08 10:17 install.log
-rw-r--r-- 1 0 0 5506 Aug 08 10:15 install.log.syslog
226 Directory send OK.
ftp: 收到 283 字节,用时 0.02Seconds 17.69Kbytes/sec.[/code]
「喜欢这篇文章,您的关注和赞赏是给作者最好的鼓励」
关注作者
【版权声明】本文为墨天轮用户原创内容,转载时必须标注文章的来源(墨天轮),文章链接,文章作者等基本信息,否则作者和墨天轮有权追究责任。如果您发现墨天轮中有涉嫌抄袭或者侵权的内容,欢迎发送邮件至:contact@modb.pro进行举报,并提供相关证据,一经查实,墨天轮将立刻删除相关内容。




