快捷搜索:  as  2018  FtCWSyGV  С˵  test  xxx  Ψһ  w3viyKQx



1、vi /etc/vsftpd/vsftpd.conf



#limit user only accessc its own directory.


# /etc/init.d/vsftpd restart



# 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?


# 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 开放本地用户的写权限,这个选项可以节制FTP 的指令是否容许变动file system,譬如STOR、DELE、RNFR、RNTO、MKD、RMD、APPE 以及SITE。预设是关闭。

# 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)


# 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.


# Uncomment this if you want the anonymous FTP user to be able to create

# new directories.


# Activate directory messages - messages given to remote users when they

# go into a certain directory.


# Activate logging of uploads/downloads.

xferlog_enable=YES是否记录ftp传输历程,假如启动,上传与下载的信息将被完备记载在底下xferlog_fi下载澳门新葡亰官网Apple 所定义的档案中。预设为开启。

# Make s下载澳门新葡亰官网Appure PORT transfer connections originate from port 20 (ftp-data).

connect_from_port_20=YES启用FTP数据端口的连接哀求,若设为YES,则逼迫ftp-data 的数据传送应用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_uplo下载澳门新葡亰官网Appads=YES若是启动,所有匿名上传数据的拥有者将被替换为chown_username 傍边所设定的应用者。这样的选项对付安然及治理,是很有用的。默认值为NO。


# You may override where the log file goes if you like. The default is shown

# below.


# If you want, you can have your log file in standard ftpd xferlog format

xferlog_std_format=YES是否应用标准的ftp xferlog模式

# You may change the default value for timing out an idle session.


# You may change the default value for timing out a data connection.


# 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.


# 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.


# 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 a下载澳门新葡亰官网Appscii_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..




# 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.


# (default follows)



# 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().


# (default follows)



在/etc/vsftpd.chroot_list 之中的应用者之外。默认值为NO。

# 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 这个指令。默认值为NO。

pam_service_name=v下载澳门新葡亰官网Appsftpd设置PAM认证办事的设置设置设备摆设摆设文件名称,该文件寄放 在/etc/pam.d/目录下


若是启动此功能,则会读取/etc/vsftpd.user_list 傍边的应用者名称。此项功能可以在询



这个选项只有在userlist_enable 启动时才会被查验。假如将这个选项设为YES,则在

/etc/vsftpd.user_list 中的应用者将无法登入﹔ 若设为NO , 则只有在 /etc/vsftpd.user_list 中的应用者才能登入。而且此项功能可以在扣问密码前就呈现差错


#enable for standalone mode


若是启动,则vsftpd 将会以自力运作的要领履行,若是vsftpd 自力履行,如RedHat9

的默认值,则必须启动﹔若是vsftpd 包孕在xinetd 之中,则必须关闭此功能,如

RedHat8。在RedHat9 的默认值为YES。

tcp_wrappers=YES将vsftpd 与TCP_wrapper 结合。假如启动,则会将vsftpd 与tcp wrapper 结合,也便是可以在/etc/hosts.allow与/etc/hosts.deny 中定义可联机或是回绝