1

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
2

Well, After several hours of investigation/testing, I found the solution:

Commenting/disabling the

chown_uploads

made it work and now any change that I make on file_open_mode, anon_umask, etc... work ! Is that a bug ? I don't know but it fixed my issue

0

You also need to specify the file open mode:

file_open_mode=0777

The mask is exactly that, a mask, it turns bits off, not on.

  • I had tried that as well but no success.... – Frederic Aug 31 '17 at 18:01

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.