I installed a vsftpd server and created an account for one FTPuser. This FTPuser uploads files in another user directory (user1), and this user1 runs a program that uses these files. I have added both users to groups FTPuser and user1 and changed the permissions to 775, however the program requires that files are owned by user1. I tried:

sudo setfacl -m d:user1:rwx /home/user1/serverfiles


sudo setfacl -R -d -m u:user1:rw,g:user1:rw,o::r /home/user1/serverfiles

but nothing seems to change, files uploaded are still owned by FTPuser

  • Did you run sudo chown -R user1 /home/user1/serverfiles to change the current files as that command won't change those files already created? – George Udosen Aug 30 '18 at 14:24
  • I did, but the owner is still FTPuser – Klajdi Him Aug 30 '18 at 16:47
  • I wonder why that is? – George Udosen Aug 30 '18 at 17:35
  • I found those commands in another thread, installed acl and ran the commands. Maybe its because i have bind mounted the directory of user1 to FTPuser mount --bind /home/user1/serverfiles /home/FTPuser/workspace But i did run the command for both directories. Also, setfacl --help works – Klajdi Him Aug 30 '18 at 17:59
  • Please what version of Ubuntu is this, why would you need to install acl? – George Udosen Aug 30 '18 at 18:10

Your Answer

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

Browse other questions tagged or ask your own question.