anonymous_enable=NO
local_enable=YES
write_enable=YES
local_umask=022
dirmessage_enable=YES
xferlog_enable=YES
xferlog_std_format=YES
ascii_upload_enable=YES
ascii_download_enable=YES
ls_recurse_enable=YES
listen=YES
listen_ipv6=NO


pam_service_name=vsftpd
userlist_enable=YES
tcp_wrappers=YES
local_root=/abc
guest_enable=YES
guest_username=usrVsftp
user_config_dir=/etc/vsftpd/vuser
virtual_use_local_privs=YES
accept_timeout=5
connect_timeout=1

useradd usrVsftp -s /sbin/nologin

echo "ftpduserpass" |passwd -stdin usrVsftp

mkdir /etc/vsftpd/vuser
vim vabc
local_root=/e
write_enable=YES

vim /etc/vsftpd/vuser_name
db_load -T -t hash -f /etc/vsftpd/vuser_name /etc/vsftpd/vuser_name.db
chmod 600 /etc/vsftpd/vuser_name.db
#注释默认所有,添加如下
vim /etc/pam.d/vsftpd
auth        required    pam_userdb.so   db=/etc/vsftpd/vuser_name
account     required    pam_userdb.so   db=/etc/vsftpd/vuser_name