服务器配置vsftpd一直出现530 Login incorrect。
确认vsftpd服务启动
确认用户名、密码是正确的
确保登录的ftp用户名未包含在禁止登录列表/etc/vsftpd/ftpusers中
查看配置文件包含pam_service_name=vsftpd
确认用户对应目录权限
防火墙和selinux关闭
在确定上述几条均无问题时,还是一直530.后来编辑/etc/pam.d/vsftp文件,注释掉auth required pam_shells.so
#%PAM-1.0 session optional pam_keyinit.so force revoke auth required pam_listfile.so item=user sense=deny file=/etc/vsftpd/ftpusers onerr=succeed #auth required pam_shells.so auth include password-auth account include password-auth session required pam_loginuid.so session include password-auth
这个语句的意思是只有包含shell的用户才能登录。但是有在服务器增加对应的用户,具体原因不明,第一次遇到这问题,不过还是按这方法解决了。
本文链接:https://jeff.xin/post/71.html
--EOF--
发表于 2017-10-11 ,并被添加「 Ftp 」标签 。
Comments
发表评论:
◎欢迎参与讨论,请在这里发表您的看法、交流您的观点。