5.6.2.1. Anonymous Upload

5.6.2.1. Anonymous Upload

To allow anonymous users to upload, it is recommended that a write-only directory be created within /var/ftp/pub/.

To do this, type:

         mkdir /var/ftp/pub/upload 
      

Next change the permissions so that anonymous users cannot see what is within the directory by typing:

         chmod 730 /var/ftp/pub/upload 
      

A long format listing of the directory should look like this:

         drwx-wx--- 2 root ftp 4096 Feb 13 20:05 upload 
      

Warning

Administrators who allow anonymous users to read and write in directories often find that their servers become a repository of stolen software.

Additionally, under vsftpd, add the following line to the /etc/vsftpd/vsftpd.conf file:

         anon_upload_enable=YES 
      

Note: This documentation is provided {and copyrighted} by Red Hat®, Inc. and is released via the Open Publication License. The copyright holder has added the further requirement that Distribution of substantively modified versions of this document is prohibited without the explicit permission of the copyright holder. The CentOS project redistributes these original works (in their unmodified form) as a reference for CentOS-4 because CentOS-4 is built from publicly available, open source SRPMS. The documentation is unmodified to be compliant with upstream distribution policy. Neither CentOS-4 nor the CentOS Project are in any way affiliated with or sponsored by Red Hat®, Inc.