正确操作后会看到上面的画面,里面包含了一堆帮助加参数
#后面是注释,类似于c中的//
有些参数也被注释掉了,在需要时可以自己去掉#
配置文件的原文我已经复制出来了,如下:
# Example config file /etc/vsftpd.conf
#
# The default compiled in set
tings 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.
#
#
# Run standalone? vsftpd can run either from an inetd or as a standalone
# daemon started from an initscript.
listen=NO
#
# This directive enables listening on IPv6 sockets. By default, listening
# on the IPv6 "any" address (::) will accept connections from both IPv6
# and IPv4 clients. It is not necessary to listen on *both* IPv4 and IPv6
# sockets. If you want that (perhaps because you want to listen on specific
# addresses) then you must run two copies of vsftpd with two configuration
# files.
listen_ipv6=YES
#
# Allow anonymous FTP? (Disabled by default).
anonymous_enable=NO
#
# 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
#
# 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
#
# 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
#
# If enabled, vsftpd will display directory listings with the time
# in your local time zone. The default is to display GMT. The
# times returned by the MDTM FTP command are also affected by this
# option.
use_localtime=YES
#
# Activate logging of uploads/downloads.
xferlog_enable=YES
#
# Make sure PORT transfer connections originate from port 20 (ftp-data).
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!
#chown_uploads=YES
#chown_username=whoever
#
# You may override where the log file goes if you like. The default is shown
# below.
#xferlog_file=/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
#
# 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.
#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 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_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.
#deny_email_enable=YES
# (default follows)
#banned_email_file=/etc/vsftpd.banned_emails
#
# You may restrict local users to their home directories. See the FAQ for
# the possible risks in this before using chroot_local_user or
# chroot_list_enable below.
#chroot_local_user=YES
#
# 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().
# (Warning! chroot'ing can be very dangerous. If using chroot, make sure that
# the user does not have write access to the top level directory within the
# 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_recurse_enable=YES
#
# Customization
#
# Some of vsftpd's settings don't fit the filesystem layout by
# default.
#
# This option should be the name of a directory which is empty. Also, the
# directory should not be writable by the ftp user. This directory is used
# as a secure chroot() jail at times vsftpd does not require filesystem
# access.
secure_chroot_dir=/var/run/vsftpd/empty
#
# This string is the name of the PAM service vsftpd will use.
pam_service_name=vsftpd
#
# This option specifies the location of the RSA certificate to use for SSL
# encrypted connections.
rsa_cert_file=/etc/ssl/certs/ssl-cert-snakeoil.pem
rsa_private_key_file=/etc/ssl/private/ssl-cert-snakeoil.key
ssl_enable=NO
#
# Uncomment this to indicate that vsftpd use a utf8 filesystem.
#utf8_filesystem=YES
大家如果觉得在ssh那里看着幸苦的话可以直接看这。
顺便放出翻译,这个是机器翻译,本人英语太差了,面对这样帮助文档实在无能为力。
#示例配置文件/ etc / vsftpd.conf
#
#默认的编译设置相当偏执。此示例文件
#放松了一点东西,使更多的可用的FTP守护进程。请看
# vsftpd。conf.5所有编译的默认值。
#
#读这个:这个例子文件不是vsftpd选项一个详尽的列表。
#请阅读vsftpd。conf.5手册获得的vsftpd的充分思想
#能力。
#
#
#独立运行?vsftpd可以运行从inetd或作为一个独立的
#守护进程启动的启动脚本来进行。听=NO
#
#这个指令使听力在IPv6套接字。默认情况下,听
#对IPv6的“任何”地址(::)将接受来自IPv6连接
#和IPv4客户。这是NO必要听* * IPv4和IPv6
#插座。如果你想这样(也许是因为你想听具体
#地址)然后你必须跑两份两配置vsftpd
#文件。listen_ipv6 =YES
#
#允许匿名FTP?(默认情况下禁用)。anonymous_enable =NO
#
#注释,这允许本地用户登录。
local_enable =YES
#
#注释,这使任何形式的FTP命令。
# write_enable =YES
#
# umask默认为本地用户077。您可能希望将此更改为022,
#如果用户期望(022是其他大多数ftpd的使用)
# local_umask = 022
#
#注释,这允许匿名FTP用户上传文件。这只
#起作用如果上述全局写使能被激活。还有,你会
#显然需要创建一个目录的FTP用户可写。
# anon_upload_enable =YES
#
#注释掉这如果你想匿名FTP用户可以创建
#新目录。
# anon_mkdir_write_enable =YES
#
#激活目录信息-信息给远程用户时
#进入某个目录。
dirmessage_enable =YES
#
#如果启用,vsftpd将显示随着时间的目录列表
#在您当地的时区。默认是显示GMT. The
#次返回MDTM FTP命令也受此影响
#选项。
use_localtime =YES
#
#激活上传/下载日志。
xferlog_enable =YES
#
#确保端口传输连接来自于20端口(FTP)。
connect_from_port_20 =YES
#
#如果你想,你可以安排上传匿名文件属于
#不同的用户。注!使用“根”上传文件不是
#推荐!
# chown_uploads =YES
# chown_username =谁
#
#你可以重写日志文件在哪里如果你喜欢。默认显示
#下面。
# xferlog_file = /var/log/messages vsftpd.log
#
#如果你想,你可以有你的日志文件格式标准xferlog ftpd。
#注意默认的日志文件位置是/var/log/messages xferlog在这种情况下。
# xferlog_std_format =YES
#
你可以改变#时间超时的默认值一个空闲会话。
# idle_session_timeout = 600
#
你可以改变#时间超时的默认值的数据连接。
# data_connection_timeout = 120
#
#建议你重新定义你的系统一个独特的用户,
# FTP服务器可以使用作为一个完全隔离与特权的用户。
# nopriv_user = ftpsecure
#
#使这个服务器将识别异步ABOR请求。不
#建议安全(代码是不平凡的)。不启用,
#然而,可能会让年长的FTP客户端。
# async_abor_enable =YES
#
#默认情况下,服务器会假装允许ASCII模式实际上忽视
#请求。打开下面的选项有服务器实际上做ASCII
#处理文件时,ASCII模式。
#当心一些FTP服务器,ASCII支持允许拒绝服务
#攻击(DoS)通过命令“大小/大/文件“ASCII模式。vsftpd
#预测这种攻击一直是安全的,报告的大小
#原文件。
# ASCII编码的协议是一个可怕的特征。
# ascii_upload_enable =YES
# ascii_download_enable =YES
#
#你可以完全定制登录横幅字符串:
# ftpd_banner =欢迎给FTP服务。
#
#可以指定一个不允许匿名
电子邮件地址的文件。显然
#用于杀灭某些DOS攻击。
# deny_email_enable =YES
#(默认如下)
# banned_email_file = / etc / vsftpd.banned_emails
#
#你可以限制本地用户家目录。见常见问题解答
#可能存在的风险,在这之前chroot_local_user或使用
# chroot_list_enable下面。
# chroot_local_user =YES
#
#你可以指定chroot()本国本土用户的显式列表
#目录。如果chroot_local_user是肯定的,那么这个列表成为一个清单
#用户不chroot()。
#(警告!chroot'ing会很危险。如果使用chroot,确保
#用户NO写权限的顶层目录内
# chroot)
# chroot_local_user =YES
# chroot_list_enable =YES
#(默认如下)
# chroot_list_file = / etc / vsftpd.chroot_list
#
#可以激活“R”选项,内置LS。这是残疾人
#默认为避免远程用户能够导致过度的I / O大
#网站。然而,一些破碎的FTP客户端如“和”和“镜子”的假设
#在场的“R”的选项,所以有一个强大的情况下,使它。
# ls_recurse_enable =YES
#
#定制
#
#一些vsftpd的设置不合适的文件系统布局
#默认。
#
#这个选项应该是一个目录是空的名字。另外,该
#目录不应该由FTP用户可写。使用此目录
#作为安全chroot()监狱有时vsftpd不需要文件系统
#访问。
secure_chroot_dir = /无功/运行/命令/空
#
#这个字符串是PAM vsftpd服务的名称将使用。
pam_service_name = vsftpd
#
#此选项指定的RSA证书的位置使用SSL
#加密连接。
rsa_cert_file = / etc / SSL /证书/ ssl-cert-snakeoil.pem
rsa_private_key_file = / etc / SSL /私人/ ssl-cert-snakeoil.key
ssl_enable =NO
#
#注释,这表明vsftpd使用UTF8文件系统。
# utf8_filesystem =YES
下篇继续。