2 edited tags
| link
1
source | link

Anonymous file and folder permission/owner

I've recently installed vsfptd on my server as I want to offer an ftp to several users. I've decided that everyone would use it as an "anonymous". Every file/folder created/uploaded would however be owned by my account. To do that, I added the following files in my vsftpd.conf

chown_uploads=YES
chown_username=frederic

Problem #1 : However, I am encountering issues where when I create a folder, the owner is not modified and is still "ftp". enter image description here

Problem #2 : When I upload a file, the "chown" correctly works but the permissions are only set to the "user" (x-r) while it should be equal to rwxrwxr-x (as my anon_umask = 0002) enter image description here

For information, here is an extract of my vsftpd.conf file :

anonymous_enable=YES
anon_root=/home/frederic/Data
anon_other_write_enable=YES
anon_umask=0002
local_enable=YES
write_enable=YES
anon_upload_enable=YES
anon_mkdir_write_enable=YES
chown_uploads=YES
chown_username=frederic