「vsftpd」- 530 Login incorrect

  CREATED BY JENKINSBOT

问题描述

在登录vsftpd服务时,产生530 Login incorrect错误。

问题原因

还未深入探究。

解决办法

vim /etc/vsftpd/vsftpd.conf
pam_service_name=ftp

service vsftpd restart

You are disabling default access control via PAM, because default “ftp” has no rules. The default pam_service_name=vsftp uses the file /etc/pam.d/vsftpd. This file by default requires FTP users to have a shell listed in /etc/shells and requires them not to be listed in /etc/ftpusers.

By default vsFTPd uses the file /etc/pam.d/vsftpd. This file by default requires FTP users to have a shell listed in /etc/shells and requires them not to be listed in /etc/ftpusers. If you check those 2 things your probably find what the problem is.

I did not need to change the vsftpd.conf. Only needed to make sure that a shell was set in my /etc/passwd file, that also was lited in /etc/shells.

So basically after useradd without a shell I needed to make sure the home directory was created and that the user had /bin/bash as it’s shell.

参考文献

vsftpd: 530 Login incorrect
VSFTPD configuration problems with 12.04