Vsftpd 530 in linux owing to the underlying solution

  

vsftpd 530
This problem is very common. There are a lot of searches on the Internet, but most of them are blunders. Let me talk about my solution,

Server Description: The server uses centos 6.5 64-bit, vsftpd uses vsftpd: version 2.2.2, and the system user is nologin

1. Check the /etc/vsftpd/vsftpd.conf configuration
code as follows

local_enable=YES pam_service_name=vsftpd //Someone says ubuntu is pam_service_name=ftp (I have not tested) userlist_enable=YES

2, modify /etc/vsftpd/ftpusers
The code is as follows # vim /etc/pam.d/vsftpd //You will find that the user in ftpusers is rejected auth required pam_listfile.so item=user sense=deny file=/etc/vsftpd/Ftpusers onerr=succeed

ftpusers is the default ftp user, if you want to system users, remove this user from the ftpusers file.
Code is as follows [root@node1 vsftpd]# cat /etc/vsftpd/ftpusers # Users that are not allowed to login via ftp root bin #daemon //delete and log in adm lp sync

. . . . . . . . . Omitted. . . . . . . . .

Note here, do not change the deny in /etc/pam.d/vsftpd to allow, otherwise your own user will report 530 Login in

3, restart vsftpd
Code is as follows # /etc/init.d/vsftpd start

Copyright © Windows knowledge All Rights Reserved