我在使用vsftpd假设ftp服务器时,遇到了启动正常,但无论如何设置都出现不能连接,报错:530 login incorrect。已确定用户名和密码正确。
解决方法:查看/var/log/message文件,看到(时间)vsftpd:pam_listfile(vsftpd:auth):Refused user oracle for service vsftpd的信息,然后再查看/etc/pam.d/vsftpd文件,发现有这么一行
auth required pam_listfile.so item=user sense=deny file=/etc/ftpusers onerr=succeed
把其中的sense=deny改为sense=allow
重启vsftpd即可。
[@more@]c来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/786540/viewspace-1009268/ ,如需转载,请注明出处,否则将追究法律责任。