为什么匿名用户不能通过ftp删除文件?

为什么匿名用户不能通过ftp删除文件?

我在 中创建了一个新目录“uploads” /var/ftp。该目录的所有者和组是“ftp”,权限设置为777。

我的文件内容vsftpd.conf

anonymous_enable=YES

local_enable=YES    
write_enable=YES    
local_umask=022

anon_upload_enable=YES    
anon_mkdir_write_enable=YES

xferlog_enable=YES    
xferlog_file=/var/log/xferlog    
xferlog_std_format=YES

nopriv_user=ftpsecure

ascii_upload_enable=YES
ascii_download_enable=YES

listen=YES

pam_service_name=vsftpd
userlist_enable=YES
tcp_wrappers=YES

SELINUX 权限是:

allow_ftpd_anon_write --> on
allow_ftpd_full_access --> on

我可以将文件上传到该目录,但无法通过FTP删除文件。

谁能建议我该怎么做?

答案1

您可以尝试以下方法vsftp.conf:-

anon_other_write_enable=YES

手册页显示:-

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.

相关内容