linux下ftp连接:530 Permission denied

问题如下:

[root@localhost apps]# ftp 10.xxx.xxx.xxx
Connected to 10.xxx.xxx.xxx
220 (vsFTPd 2.0.5)
530 Please login with USER and PASS.
530 Please login with USER and PASS.
KERBEROS_V4 rejected as an authentication type
Name (10.xxx.xxx.xxx:root): root
530 Permission denied.
Login failed.
ftp>

root被禁用,可以修改下面两个地方

[root@localhost media]# vi /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
~
~
~
~
~
~
~
~
"/etc/vsftpd/ftpusers" 15L, 126C written
[root@localhost media]# vi /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
~
~
~
"/etc/vsftpd/user_list" 20L, 362C written
[root@localhost media]#

然后重启ftp:


#/sbin/service vsftpd restart

 


 

你可能感兴趣的:(FTP,Linux)