Been googling for quite a while but could not resolve this issue.
1. I would like to setup internal (LAN) VSFTPD with anonymous download and upload.
2. I created a folder named "/home/ftp/pub/incoming/" with 777 permission.
3. Whenever anonymous user upload in "incoming", the permission will be 600 and other anonymous user could not READ test.txt.
drwxrwxrwx 2 ftp root 21 Oct 8 21:20 incoming -rw------- 1 ftp ftp 12 Oct 8 21:20 test.txt
This is my vsftpd.conf
listen=YES anonymous_enable=YES local_enable=YES write_enable=YES anon_upload_enable=YES anon_mkdir_write_enable=YES chown_uploads=YES chown_username=ftp anon_root=/home/ftp local_umask=0222 anon_umask=0222
Hope that someone who have similar situation can help. Thanks guys.
Last edited by melo (2012-11-05 04:38:45)
Ok boys..my bad..problem solved..
listen=YES anonymous_enable=YES write_enable=YES anon_upload_enable=YES anon_mkdir_write_enable=YES chown_uploads=YES chown_username=ftp chmod_enable=YES anon_root=/home/ftp no_anon_password=YES nopriv_user=ftp
Your incoming folder should not be readable (+r only brings listing capabilities). Making an anonymous upload directory readable by anyone is, in general, not suitable however it is another debate and up to you to determine what is suitable or not in your context.