现象:
ftp服务启动却登陆不上,报 530 Login incorrect.
解决思路:
- 查看ftp根目录的属主
- 查看vsftpd目录的属主
- 查看 /etc/pam.d/vsftpd 文件
最后:
我的情况是,当时想要用普通用户启动ftp,改动有点乱,改动了,vsftpd目录下的文件属主所以导致root启动后依旧登陆不上的问题,
具体报错:
Jul 25 10:54:05 node196 vsftpd[11896]: pam_listfile(vsftpd:auth): /etc/vsftpd/ftpusers is either world writable or not a normal file
Jul 25 10:54:05 node196 vsftpd[11889]: pam_listfile(vsftpd:auth): /etc/vsftpd/ftpusers is either world writable or not a normal file
Jul 25 10:54:05 node196 vsftpd[11899]: pam_listfile(vsftpd:auth): /etc/vsftpd/ftpusers is either world writable or not a normal file
Jul 25 10:54:05 node196 vsftpd[11901]: pam_listfile(vsftpd:auth): /etc/vsftpd/ftpusers is either world writable or not a normal file
Jul 25 10:54:05 node196 vsftpd[11904]: pam_listfile(vsftpd:auth): /etc/vsftpd/ftpusers is either world writable or not a normal file
Jul 25 10:54:05 node196 vsftpd[11905]: pam_listfile(vsftpd:auth): /etc/vsftpd/ftpusers is either world writable or not a normal file
Jul 25 10:54:05 node196 vsftpd[11908]: pam_listfile(vsftpd:auth): /etc/vsftpd/ftpusers is either world writable or not a normal file
Jul 25 10:54:07 node196 vsftpd[11912]: pam_listfile(vsftpd:auth): /etc/vsftpd/ftpusers is either world writable or not a normal file
Jul 25 10:54:07 node196 vsftpd[11913]: pam_listfile(vsftpd:auth): /etc/vsftpd/ftpusers is either world writable or not a normal file
具体解决方式:
chmod 664 /etc/vsftpd/ftpusers,然后重启 vsftpd 。