VSFTPD 530 Login Incorrect This problem is very common, a lot of online search, but most of them are a bluff. Here's my solution,
Server Description: The server is CentOS 6.5 64 bits, VSFTPD is used Vsftpd:version 2.2.2, the system user is Nologin
1, check the/etc/vsftpd/vsftpd.conf configuration
The code is as follows |
Copy Code |
Local_enable=yes PAM_SERVICE_NAME=VSFTPD//Someone said Ubuntu is pam_service_name=ftp (I did not test) Userlist_enable=yes
|
2, modify/etc/vsftpd/ftpusers
The code is as follows |
Copy Code |
# VIM/ETC/PAM.D/VSFTPD//You will find that the user who rejects the ftpusers inside Auth Required pam_listfile.so Item=user sense=deny file=/etc/vsftpd/ftpusers
|
Ftpusers inside is the FTP default rejected users, if you want to system users, the user will be removed from the Ftpusers file.
The code is as follows |
Copy Code |
[Root@node1 vsftpd]# Cat/etc/vsftpd/ftpusers # Users that are not allowed to login via FTP Root Bin #daemon//deleted can be logged in Adm Lp Sync
|
。。。。。。。。。 Omitted.........
Here to pay attention, do not change the/etc/pam.d/vsftpd inside of the deny to allow, otherwise you build the user will be reported 530 Login incorrect
3, restart VSFTPD
code is as follows |
copy code |
#/etc/init.d/ VSFTPD start |