根据51cto的一个专题,加上我线上的调试总结出来的,配置完全是我线上系统的原始东西

 

 

    anonymous_enable=NO

#是否开启匿名登录

# Uncomment this to allow local users to log in.

local_enable=YES

#本地用户验证

#write_enable=YES

#开启写权限

# Default umask for local users is 077. You may wish to change this to 022,

# if your users expect that (022 is used by most other ftpd's)

local_umask=022

 

#anon_upload_enable=YES

#匿名用户上传权限

#anon_mkdir_write_enable=YES

#匿名用户建目录

dirmessage_enable=YES

xferlog_enable=YES

#开启日志功能

connect_from_port_20=YES

#chown_uploads=YES

#chown_username=whoever

# The name of log file when xferlog_enable=YES and xferlog_std_format=YES

# WARNING - changing this filename affects /etc/logrotate.d/vsftpd.log

xferlog_file=/var/log/xferlog

#日志文件位置

#xferlog_std_format=YES

#是否开启wuftp日志格式

#idle_session_timeout=600

#data_connection_timeout=120

#nopriv_user=ftpsecure

#async_abor_enable=YES

ascii_upload_enable=YES

ascii_download_enable=YES

#是否用二进制上传下载

#ftpd_banner=Welcome to blah FTP service.

#FTP欢迎信息

#chroot_local_user=YES

#chroot_list_enable=YES

#chroot_list_file=/etc/vsftpd/chroot_list

#ls_recurse_enable=YES

listen=YES

#listen_ipv6=YES

guest_enable=YES

开启虚拟用户

guest_username=ftpuser

#虚拟用户的宿主用户

pam_service_name=/etc/pam.d/vsftpd.vuser

#PAM文件的验证地址

virtual_use_local_privs=YES

user_config_dir=/etc/vsftpd/vsftpd_vuser

#虚拟用户配置文件夹的绝对路径

userlist_enable=YES

tcp_wrappers=YES