Updated on 十一月 20, 2023
CentOS 7 vsftpd报331 Please specify the password. PASS ******** 530 Login incorrect. 问题解决
在阿里云上新开了个服务器,第一步搭建ftp可把我难住了,按照之前的日志,http://zhuqiaochu.truestudio.tech/%e9%98%bf%e9%87%8c%e4%ba%91centos%e6%90%ad%e5%bb%baftp/ 就是不行,报331 Please specify the password. PASS 530 Login incorrect.
闲话少叙,解决办法是:
编辑 /etc/pam.d/vsftpd 将 auth required pam_shells.so 注释掉,然后重启vsftpd。
其原因是,默认配置只允许能shell的用户登录,但是创建ftp用户时,往往为了安全,禁止ssh登录,一般多为/usr/sbin/nologin,所以就无法登录了。所以把其注掉,就可以登录了。
参考:
https://blog.csdn.net/weixin_42272246/article/details/123631435