Linux中的vsftpd

zhangshengdong發表於2012-04-20
場景:碰到的情況,自己搭建一個linux伺服器,想用LeapFTP連線到伺服器的ip,但是碰到了兩個錯誤
1,許可權不足
220 (vsFTPd 2.0.5)
USER root
530 Permission denied.
QUIT
2,密碼無法識別,其實是root使用者不讓進入
USER root
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]#
[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]#
 
只要用#註釋掉使用者root,就可以讓root成功連線ftp
 

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/26446098/viewspace-721771/,如需轉載,請註明出處,否則將追究法律責任。

相關文章