# Allow anonymous FTP? (Beware - allowed by default if you comment this out).
anonymous_enable=YES #是否允许匿名用户登陆
# Uncomment this to allow local users to log in.
local_enable=YES #是否允许本地的系统用户登陆
# Uncomment this to enable any form of FTP write command.
write_enable=YES #是否允许上传文件
anon_upload_enable=YES #是否允许匿名用户上传文件,打开上传权限。注意:最终文件能否上传成功,取决于文件系统权限和文件共享权限
anon_mkdir_write_enable=YES #是否允许匿名用户创建目录
anon_other_write_enable=YES #是否允许匿名用户其他写动作,如:删除和修改
# Activate directory messages - messages given to remote users when they
# go into a certain directory.
dirmessage_enable=YES #当用进入目录,是否显示欢迎信息
# The target log file can be vsftpd_log_file or xferlog_file.
# This depends on setting xferlog_std_format parameter
xferlog_enable=YES #是否打开传输日志,记录上传下载的操作命令
# 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 #指定传输日志的路径
# If you want, you can arrange for uploaded anonymous files to be owned by
# a different user. Note! Using "root" for uploaded files is not
# recommended!
#chown_uploads=YES #是否允许上传文件完,修改用户属组
#chown_username=whoever #文件上传完,修改成用户属性
# You may change the default value for timing out an idle session.
#idle_session_timeout=600 #超时时间,控制连接
#
# You may change the default value for timing out a data connection.
#data_connection_timeout=120 #超时时间,数据连接
# You may specify an explicit list of local users to chroot() to their home
# directory. If chroot_local_user is YES, then this list becomes a list of
# users to NOT chroot().
#chroot_local_user=YES #是否将所有用户限制在主目录,YES为启用 NO禁用.(该项默认值是NO,即在安装vsftpd后不做配置的话,ftp用户是可以向上切换到要目录之外的)
#chroot_list_enable=YES #是否允许启用限制用户名单
# (default follows)
#chroot_list_file=/etc/vsftpd/chroot_list #禁锢用户列表,文件需要主动创建
# When "listen" directive is enabled, vsftpd runs in standalone mode and
# listens on IPv4 sockets. This directive cannot be used in conjunction
# with the listen_ipv6 directive.
listen=YES #是否为独立守护进程
userlist_enable=YES #是否启用/etc/vsftpd/user_list名单
userlist_deny=YES #yes表示/etc/vsftpd/user_list为黑名单,no为白名单,
#If vsftpd is in standalone mode, this is the maximum number of clients which may be connected. Any additional clients connecting will get an error message. The value 0 switches off the limit.
max_clients #限制最大客户端数量
#If vsftpd is in standalone mode, this is the maximum number of clients which may be connected from the same source internet address. A client will get an error message if they go over this limit. The value 0 switches off the limit.
max_per_ip #限制相同IP的连接客户端数量 |