- 论坛徽章:
- 13
|
本帖最后由 ulovko 于 2012-05-27 12:03 编辑
回复 12# 方兆国
是匿名登录并上传么?
hide_ids=YES (the client will be told that all files are owned by ftp:ftp,even
if they are not.)- # Anonymous FTP Uploading
- mkdir /var/ftp/pub/upload
- vim /etc/vsftpd/vsftpd.conf (configure some anon items)
- anon_upload_enable=YES
- anon_umask=077
- chown_uploads=YES
- chown_username=root
- chown -R ftp:ftp /var/ftp/pub/upload/
- setsebool -P allow_ftpd_full_access=1
- # Anonymous FTP Writing
- anon_mkdir_write_enable=YES
- getsebool -a | grep ftp
- setsebool -P allow_ftpd_anon_write on
- chcon -t public_content_rw_t /var/ftp/pub/upload
- service vsftpd restart
- #getsebool -a |grep ftp
- allow_ftpd_anon_write --> on
- allow_ftpd_full_access --> on
- allow_ftpd_use_cifs --> off
- allow_ftpd_use_nfs --> off
- allow_tftp_anon_write --> off
- ftp_home_dir --> on
- ftpd_connect_db --> off
- ftpd_disable_trans --> off
- ftpd_is_daemon --> on
- httpd_enable_ftp_server --> off
- tftpd_disable_trans --> off
复制代码 |
|