|  | 
 
| (rh8默认用vsftpd代替了wu-ftpd,从配置文件来看,应该比wu-ftpd容易配置.翻译了配置文件的注释信息,希望对用这个ftpd的朋友有所帮助.鉴于水平有限,文中不少地方只能意译,可能翻译得不太准确,不足错漏之处大家请跟贴补充) (转贴请注明www.linuxfans.org,谢!)
 # Example config file /etc/vsftpd.conf
 #
 # The default compiled in settings are very paranoid. This sample file
 # loosens things up a bit, to make the ftp daemon more usable.
 #
 # Allow anonymous FTP?
 
 #允许匿名登录?
 
 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.
 
 #取消注释这行将允许任何形式的ftp写命令
 
 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)
 
 #默认本地用户的umask是077,你可能想改成022,如果你的用户期盼那样(大部分其他的ftp服务端使用022)
 
 local_umask=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.
 
 #取消注释这行将允许匿名用户上传文件.这个只有在上面的write_enable=YES才起作用.而且,很明显你需要建立一个让ftp用户可写的目录
 
 #anon_upload_enable=YES
 #
 # Uncomment this if you want the anonymous FTP user to be able to create
 # new directories.
 
 #取消注释这行,如果你希望匿名ftp用户有建立目录的权限
 
 #anon_mkdir_write_enable=YES
 #
 # Activate directory messages - messages given to remote users when they
 # go into a certain directory.
 
 #激活目录信息(??)--当远程用户登录某个特定目录时显示的信息
 
 dirmessage_enable=YES
 #
 # Activate logging of uploads/downloads.
 
 #激活记录上传/下载活动
 
 xferlog_enable=YES
 #
 # Make sure PORT transfer connections originate from port 20 (ftp-data).
 
 #确定传输联接端口从20开始(??)
 
 connect_from_port_20=YES
 #
 # 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!
 
 #如果你喜欢,你可以让(某个特定的?)用户有改变文件权限的权限.注意!不建议用"root"帐号上传文件
 
 #chown_uploads=YES
 #chown_username=whoever
 #
 # You may override where the log file goes if you like. The default is shown
 # below.
 
 #你可以随意指定log记录文件的位置和名字.下面的是默认的
 
 #xferlog_file=/var/log/vsftpd.log
 #
 # If you want, you can have your log file in standard ftpd xferlog format
 
 #如果你喜欢,你可以指定你的记录文件为标准的ftp服务端记录格式
 
 xferlog_std_format=YES
 #
 # 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
 #
 # 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
 #
 # 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.
 
 #enable这个,服务器将识别异步(??)的ABOR请求.由于安全原因不推荐这么做(the code is non-trivial--不懂译).不enable这个,
 #可能会将一些老ftp客户端的请求拒之门外
 
 #async_abor_enable=YES
 #
 # 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 turning on ascii_download_enable enables malicious remote parties
 # to consume your I/O resources, by issuing the command "SIZE /big/file" in
 # ASCII mode.
 # These ASCII options are split into upload and download because you may wish
 # to enable ASCII uploads (to prevent uploaded scripts etc. from breaking),
 # without the DoS risk of SIZE and ASCII downloads. ASCII mangling should be
 # on the client anyway..
 #默认情况下服务器会假装接受ASCII模式请求但实际上是忽略这样的请求(译者注:传输一些纯文本文件,
 #譬如txt,html文件时可以每个byte只传送7个bit,加快传输速度,但可能会出错).打开下面的设置可以让服务器真正实现ASCII模式的传输.
 #小心,打开ascii_download_enable选项会让恶意远程用户们在ASCII模式下用"SIZE /big/file"这样的指令大量消耗你的I/O资源
 #这些ASCII模式的设置选项分成上传和下载两个,因为你可能希望允许ASCII模式的上传(为了备免上传脚本等而导致崩溃??),
 #而不想冒遭受拒绝服务攻击和ASCII模式下载的危险.而在客户端上ASCII编码识别是一直开着的..
 
 #ascii_upload_enable=YES
 #ascii_download_enable=YES
 #
 # 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.
 
 #你可以指定一个非法匿名邮件地址列表的文件.显然,这对防止一些DoS攻击很有效.
 
 #deny_email_enable=YES
 # (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_local_user=YES,那么这个列表里指定的用户是不受限制的
 
 #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指令的"-R"选项.为了备免远程用户在存放大量文件的目录下(用ls -R时??)导致消耗过多的I/O资源,默认是禁止的.
 #而且,一些断开的ftp客户端如"ncftp"和"mirror"假使-R选项已经存在,所以激活它必需慎重.
 
 #ls_recurse_enable=YES
 
 pam_service_name=vsftpd
 | 
 |