Ftp
為什麼匿名使用者不能通過 ftp 刪除文件?
我在
/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 刪除文件。
誰能建議我該怎麼做?
您可以嘗試以下方法
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.