vsftp虚拟账户登录失败331 Please specify the password.

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/weixin_38637595/article/details/89817940

现象

  • filezilla
命令:	USER orign
响应:	331 Please specify the password.
命令:	PASS ************
响应:	530 Login incorrect.
  • 日志报错/var/log/secure
Mar 20 17:49:48 ZRTG-YSB-MGDB02 sshd[14573]: pam_unix(sshd:session): session opened for user root by (uid=0)
  • pam配置/etc/pam.d/vsftpd
#%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
auth    sufficient /lib64/security/pam_userdb.so db=/etc/vsftpd/loginusers
account sufficient /lib64/security/pam_userdb.so db=/etc/vsftpd/loginusers

解决办法

  • 修改/etc/pam.d/vsftpd文件
auth    sufficient /lib64/security/pam_userdb.so db=/etc/vsftpd/loginusers
account sufficient /lib64/security/pam_userdb.so db=/etc/vsftpd/loginusers

猜你喜欢

转载自blog.csdn.net/weixin_38637595/article/details/89817940