今天在服务器上安装vsftp以便给同志们开放一个ftp私有资源,居然也出了不少问题,这里作一些简单的记录吧。首先设置了chroot限制用户跨越目录和其他一些设置,然后写了下面几行来写入仅允许登陆的ftp用户
#user define
userlist_enable=YES
userlist_deny=NO
userlist_file=/etc/vsftpd.user_allow
看上去一切完好如此,没有发现什么问题,居然发现登录的时候失败。如下所示:
Connected to fsafe.org.
220-Welcome to FSAFE ftp server.
220-If you find any question, please send mail to ftp@fsafe.org.
220
User (fsafe.org:(none)): test
331 Please specify the password.
Password:
530 Login incorrect.
Login failed.
ftp> quit
验证了密码并排除该问题,几乎头都大了还是没有找个这个解决方法,无奈之下开始g搜下了吧,在chinaunix上一个论坛帖子这样写到关于此类问题的解释:
check_shell
Note! This option only has an effect for non-PAM builds of vsftpd. If disabled, vsftpd will not check /etc/shells for a valid user shell for local logins.<