Fedora8 配置Vsftpd

# Example config file /etc/vsftpd/vsftpd.conf
#
# The default compiled in settings are fairly paranoid. This sample file
# loosens things up a bit, to make the ftp daemon more usable.
# Please see vsftpd.conf.5 for all compiled in defaults.
#
# READ THIS: This example file is NOT an exhaustive list of vsftpd options.
# Please read the vsftpd.conf.5 manual page to get a full idea of vsftpd's
# capabilities.
#
# Allow anonymous FTP? (Beware - allowed by default if you comment this out).
anonymous_enable=YES      是否允许anonymous登录FTP服务器
#
# Uncomment this to allow local users to log in.
local_enable=YES     是否允许本地用户登录FTP服务器
#
# Uncomment this to enable any form of FTP write command.
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    设置本地用户的文件生成掩码为022
#
# Uncomment this to allow the anonymous FTP user to upload files. This only
# has an effect if the above global write enable is activated. Also, you will
# obviously need to create a directory writable by the FTP user.
#anon_upload_enable=YES     是否允许匿名用户上传
#
# Uncomment this if you want the anonymous FTP user to be able to create
# new directories.
#anon_mkdir_write_enable=YES    是否允许匿名账户创建目录
#
# Activate directory messages - messages given to remote users when they
# go into a certain directory.
dirmessage_enable=YES    切换目录时,显示目录下.message的内容
#
# Activate logging of uploads/downloads.
xferlog_enable=YES         启用上传和下载日志功能
#
# Make sure PORT transfer connections originate from port 20 (ftp-data).
connect_from_port_20=YES    启用FTP数据端口的连接请求确保ftp-datad 数据传送使用port 20
#
# 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选项确定的用户
#chown_username=whoever   改变匿名用户上传的文件的所有者需设定chown_uploads
#
# You may override where the log file goes if you like. The default is shown
# below.
#xferlog_file=/var/log/vsftpd.log    将上传下载信息记录到/var/log/vsftpd.log中
#
# If you want, you can have your log file in standard ftpd xferlog format.
# Note that the default log file location is /var/log/xferlog in this case.
xferlog_std_format=YES            使用标准的xferlog的日志文件格式  
#
# You may change the default value for timing out an idle session.
#idle_session_timeout=600       如果使用者600秒没有动作,则踢出
#
# You may change the default value for timing out a data connection.
#data_connection_timeout=120      设置数据传输超时时间120s
#
# It is recommended that you define on your system a unique user which the
# ftp server can use as a totally isolated and unprivileged user.
#nopriv_user=ftpsecure  指定一个安全用户账号,让FTP服务器用作完全隔离和没有特权的独立用户
或 用于指定一个用户, 当 vsftpd 要切换到无权限状态时, 使用此用户. 注意这最好是一个专用用户,
而不是用户 nobody. 在大多数机器上, 用户 nobody 被用于大量重要的事情
#
# Enable this and the server will recognise asynchronous ABOR requests. Not
# recommended for security (the code is non-trivial). Not enabling it,
# however, may confuse older FTP clients.
#async_abor_enable=YES              是否允许运行特殊的ftp命令async
#
# By default the server will pretend to allow ASCII mode but in fact ignore
# the request. Turn on the below options to have the server actually do ASCII
# mangling on files when in ASCII mode.
# Beware that on some FTP servers, ASCII support allows a denial of service
# attack (DoS) via the command "SIZE /big/file" in ASCII mode. vsftpd
# predicted this attack and has always been safe, reporting the size of the
# raw file.
# ASCII mangling is a horrible feature of the protocol.
#ascii_upload_enable=YES            启用上传的ASCII传输方式
#ascii_download_enable=YES       启用下载的ASCII传输方式
#
# You may fully customise the login banner string:
#ftpd_banner=Welcome to blah FTP service.    用户连接后显示欢迎信息
#
# You may specify a file of disallowed anonymous e-mail addresses. Apparently
# useful for combatting certain DoS attacks.
#deny_email_enable=YES    与下面的同时使用 #banned_email_file=/etc/vsftpd/banned_emails
# (default follows)
#banned_email_file=/etc/vsftpd/banned_emails  
此选项用于指定包含不允许用作匿名用户登录密码的电子邮件地址列表的文件. 使用此选项需要与上面同时使用
#
# 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_list_enable=YES              限制使用者不能离开家目录
# (default follows)  
#chroot_list_file=/etc/vsftpd/chroot_list
#与上条同时使用,设置限制使用者    注:文件要自己建立,一个一行
#
# You may activate the "-R" option to the builtin ls. This is disabled by
# default to avoid remote users being able to cause excessive I/O on large
# sites. However, some broken FTP clients such as "ncftp" and "mirror" assume
# the presence of the "-R" option, so there is a strong case for enabling it.
#ls_recurse_enable=YES  设置将允许用户使用 "ls -R". 大型站点的根目录下进行ls -R消耗很多资源
#
# 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          使用standalone启动,而不是super daemon(xinetd)控制它 (推荐使用standalone方式)
#
# This directive enables listening on IPv6 sockets. To listen on IPv4 and IPv6
# sockets, you must run two copies of vsftpd whith two configuration files.
# Make sure, that one of the listen options is commented !!
#listen_ipv6=YES  
vsftpd 将对 IPv6 接口进行监听, 而不是 IPv4 接口. 此参数 和 listen 参数相互独立.
pam_service_name=vsftpd    
pam是在密码验证之后拒绝用户登陆(提示密码错误) 用户列表默认存放在/etc/ftpusers中

. (可通过/etc/pam.d/vsftpd重定向用户列表存放文件)
userlist_enable=YES      在/etc/vsftpd/user_list 文件中列出用户不能访问FTP ,在进行密码验证之前拒绝用户登陆
tcp_wrappers=YES         >使用tcp_wrappers作为主机访问控制方式

你可能感兴趣的:(linux,职场,fedora,休闲,vsftp配置)