场景:碰到的情况,自己搭建一个linux服务器,想用LeapFTP连接到服务器的ip,但是碰到了两个错误
1,权限不足
220 (vsFTPd 2.0.5)
USER root
530 Permission denied.
QUIT
USER root
530 Permission denied.
QUIT
2,密码无法识别,其实是root用户不让进入
USER root
331 Please specify the password.
PASS xxxxxx
530 Login incorrect.
331 Please specify the password.
PASS xxxxxx
530 Login incorrect.
vsftpd是一个安全很高的ftp软件包
里面的有两个配置文件
ftpusers和user_list
[root@www vsftpd]# cat ftpusers;
# Users that are not allowed to login via ftp(这里呈现哪些用户不能进入ftp)
#root
bin
daemon
adm
lp
sync
shutdown
halt
mail
news
uucp
operator
games
nobody
[root@www vsftpd]#
# Users that are not allowed to login via ftp(这里呈现哪些用户不能进入ftp)
#root
bin
daemon
adm
lp
sync
shutdown
halt
news
uucp
operator
games
nobody
[root@www vsftpd]#
[root@www vsftpd]# cat user_list(这里是user进入的权限文件)
# 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@www vsftpd]#
# 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@www vsftpd]#
只要用#注释掉用户root,就可以让root成功连接ftp
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/26446098/viewspace-721771/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/26446098/viewspace-721771/