mirror of
https://github.com/beyondx/Notes.git
synced 2026-02-10 13:56:18 +08:00
73 lines
2.9 KiB
Plaintext
73 lines
2.9 KiB
Plaintext
Content-Type: text/x-zim-wiki
|
||
Wiki-Format: zim 0.4
|
||
Creation-Date: 2011-05-16T16:29:05+08:00
|
||
|
||
====== vsftp ======
|
||
Created Monday 16 May 2011
|
||
http://home.ustc.edu.cn/~lixuebai/GNU/FtpServer.html
|
||
|
||
# 服务器以standalong模式运行,这样可以进行下面的控制
|
||
listen=YES
|
||
# 接受匿名用户
|
||
anonymous_enable=YES
|
||
# 匿名用户login时不询问口令
|
||
no_anon_password=YES
|
||
# 接受本地用户
|
||
local_enable=YES
|
||
# 可以上传(全局控制).若想要匿名用户也可上传则需要设置anon_upload_enable=YES,
|
||
# 若想要匿名用户可以建立目录则需要设置anon_mkdir_write_enable=YES.这里禁止匿
|
||
# 名用户上传,所以不设置这两项.
|
||
write_enable=YES
|
||
# 本地用户上传文件的umask
|
||
local_umask=022
|
||
# 如果设为YES,匿名登入者会被允许上传目录的权限,当然,匿名使用者必须要有对上
|
||
# 层目录的写入权。
|
||
anon_upload_enable=YES
|
||
# 定义匿名登入的使用者名称。默认值为ftp
|
||
ftp_username=ftp
|
||
# 如果设为YES,匿名登入者会被允许新增目录,当然,匿名使用者必须要有对上层目录
|
||
# 的写入权。
|
||
anon_mkdir_write_enable=YES
|
||
# 为YES则进入目录时显示此目录下由message_file选项指定的文本文件
|
||
# (,默认为.message)的内容
|
||
dirmessage_enable=YES
|
||
# 本地用户login后所在目录,若没有设置此项,则本地用户login后将在他的home目录
|
||
# (/etc/passwd的第六个字段)中.匿名用户的对应选项是anon_root
|
||
# local_root=/home
|
||
anon_root=/home/ftp/
|
||
# 使用上传/下载日志,日志文件默认为/var/log/vsftpd.log,可以通过xferlog_file
|
||
# 选项修改
|
||
xferlog_enable=YES
|
||
# Make sure PORT transfer connections originate from port 20 (ftp-data).
|
||
connect_from_port_20=YES
|
||
# 日志使用标准xferlog格式
|
||
xferlog_std_format=YES
|
||
# You may change the default value for timing out a data connection.
|
||
data_connection_timeout=120
|
||
# 关闭本地用户chroot()
|
||
chroot_local_user=NO
|
||
# 设置为yes则下面的控制有效。
|
||
# 开启要设置chroot()用户项.
|
||
chroot_list_enable=YES
|
||
# (default follows)
|
||
# 指定要设置chroot()的特定用户文件
|
||
chroot_list_file=/etc/vsftpd.chroot_list
|
||
# 若设置为YES则记录在userlist_file选项指定文件(默认是/etc/vsftpd.user_list)
|
||
# 中的用户无法login,并且将检察下面的userlist_deny选项
|
||
userlist_enable=YES
|
||
# 若为NO,则仅接受记录在userlist_file选项指定文件(默认是/etc/vsftpd.user_list)
|
||
# 中的用户的login请求.若为YES则不接受这些用户的请求.
|
||
userlist_deny=NO
|
||
# 注意!!!vsftpd还要检察/etc/vsftpd.ftpusers文件,记录在这个文件中的用户将
|
||
# 无法login!!
|
||
# 匿名用户的传输比率(b/s)
|
||
anon_max_rate=512000
|
||
# 本地用户的传输比率(b/s)
|
||
local_max_rate=1024000
|
||
# 可接受的最大client数目
|
||
max_clients=100
|
||
# 每个ip的最大client数目
|
||
max_per_ip=5
|
||
# 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
|