vsftpd 530 Login incorrect

服务器配置vsftpd一直出现530 Login incorrect。

  1. 确认vsftpd服务启动

  2. 确认用户名、密码是正确的

  3. 确保登录的ftp用户名未包含在禁止登录列表/etc/vsftpd/ftpusers中

  4. 查看配置文件包含pam_service_name=vsftpd

  5. 确认用户对应目录权限

  6. 防火墙和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--

Comments

发表评论:

◎欢迎参与讨论,请在这里发表您的看法、交流您的观点。