An anonymous FTP server is created in 10.10.50.230. The following message is displayed when the file is uploaded in 10.10.50.241:
local: README.txt remote: /var/ftp/pub/upload 227 Entering Passive Mode (10,10,50,230,117,8). 553 Could not create file.
Because the setup steps are fully in accordance with the standard documentation, vsftp. conf settings should be correct. Check: getsebool-A | grep FTP
Found:
allow_ftpd_anon_write --> offallow_ftpd_full_access --> offallow_ftpd_use_cifs --> offallow_ftpd_use_nfs --> offftp_home_dir --> offftpd_connect_db --> offftpd_use_fusefs --> offftpd_use_passive_mode --> offhttpd_enable_ftp_server --> offtftp_anon_write --> offtftp_use_cifs --> offtftp_use_nfs --> off
Also: getenforce
Permissive
So it should be: SELinux firewall problems, run the following command:
setsebool -P allow_ftpd_anon_write=1
Log on to 10.10.50.241 through FTP and find:
500 Oops: vsftpd: refusing to run with writable Anonymous root
The reason is: the permission for the/var/FTP directory cannot be 777.
Therefore, modify this:
chown root:root /var/ftpchmod 755 /var/ftpchown ftp:ftp /var/ftp/pubchmod 777 /var/ftp/pub
Re-test, upload and download are normal, and the problem is solved.
For the specific building process of anonymous FTP, refer:
Http://zhan.renren.com/cqhqhsj? Gid = 3602888498000566417 & checked = true