vsftpd:匿名上傳

# ------------------------------------------------------------------
# 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可以讀寫.
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章