1、vsftp.conf配置文件
vi /etc/vsftpd/vsftpd.conf
## 以下是具体内容:
anonymous_enable=NO
local_enable=YES
local_root=
write_enable=YES
local_umask=022
dirmessage_enable=YES
xferlog_enable=YES
connect_from_port_20=YES
xferlog_std_format=YES
listen=YES
listen_ipv6=NO
listen_port=10806
pam_service_name=vsftpd
userlist_enable=YES
tcp_wrappers=YES
userlist_deny=NO
pasv_promiscuous=YES
2、vsftpd的pam文件
vi /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 include password-auth
account include password-auth
session required pam_loginuid.so
session include password-auth
#auth required /lib64/security/pam_userdb.so db=/etc/vsftpd/vuser
auth required pam_nologin.so
#account required /lib64/security/pam_userdb.so db=/etc/vsftpd/vuser
标签:enable,配置文件,auth,vsftpd,vsftp,so,YES,pam
From: https://www.cnblogs.com/jipinglong/p/18260020