An error occurred while uploading files through anonymous FTP on the local virtual machine.

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.