Hi, all,
I am trying to make an FTP server using vsftpd with anonymous upload enable.
I want a local user to be an owner of anonymous uploaded files and set their permissions to 644. So I added the following to my vsftpd.conf:
file_open_mode=0666
anon_umask=022
chown_uploads=YES
chown_username=vma
But when I tried to upload file under anonymous, its permissions were set to 600:
-rw------- vma ftp 1.txt
The result is the same with all local users in chown_username parameter. But if I set chown_uploads=NO it’s ok!
-rw-r–r-- ftp ftp 4.txt
So, the question is: why aren’t permissions being set properly with local user as owner?