用户使用DC4.1 proftpd 服务 test用户登录出现530 Login Incorrect 报错,通常出现530 Login Incorrect与用户密码 ftpusers文件相关。检查用户的proftpd.conf passwd文件没有异常,并且test用户可以正常的telnet登录。查看messages文件得到了信息
Feb 15 22:36:58 localhost proftpd[11390]: localhost.localdomain (10.130.24.161[10.130.24.161]) - FTP session opened.
Feb 15 22:36:58 localhost proftpd: PAM-listfile: /etc/ftpusers is either world writable or not a normal file
Feb 15 22:36:59 localhost proftpd[11390]: localhost.localdomain (10.130.24.161[10.130.24.161]) - PAM(nms): Authentication failure.
Feb 15 22:36:59 localhost proftpd[11390]: localhost.localdomain (10.130.24.161[10.130.24.161]) - FTP session closed.
问题可能出现在ftpusers文件上,得知用户将ftpusers文件权限修改为777
而正常的ftpusers文件权限是
-rw-r--r-- 1 root root 200 8 20 11:13 ftpusers
解决方法:
#chmod 644 /etc/ftpusers
#chown root:root /etc/ftpusers
阅读(6682) | 评论(0) | 转发(0) |