vsftpd:匿名上传

来源:互联网 发布:怎么删除mac上office 编辑:程序博客网 时间:2024/05/18 02:33
# ------------------------------------------------------------------
# anonymous setting
#-------------------------------------------------------------------
# Allow anonymous FTP? (Beware - allowed by default if you comment this out).
anonymous_enable=YES
#
# 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
#
# You may specify a file of disallowed anonymous e-mail addresses. Apparently
# useful for combatting certain DoS attacks.
#deny_email_enable=YES
#
# 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 if you want the anonymous FTP user to be able to create
# new directories.
anon_mkdir_write_enable=YES
#
#anon_other_write_enable, If set to YES, anonymous users will be permitted to perform write operations other than upload and create directory, such as #deletion and renaming. This #is generally not recommended but included for completeness.
#Default: NO
anon_other_write_enable=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=jing
#
anon_root=/home/ftp/
#==============================================================

典型问题, vsftpd: refusing to run with writable anonymous root
原因: anon_root的不能提供其他用户的上传, 写权限. 要允许匿名上传, 可以在anon_root下新建一个文件夹, 设置相应的写权限和读权限, 比如只允许owner可以读写.
原创粉丝点击