I have created a backup-user (let's just call it jeremy) on an Ubuntu-server.

Then I've created a backup-dir, containing files from several different servers:

   |     |--daily_backup
   |     |--weekly_backup
   |     |--daily_backup
   |     |--weekly_backup

I've then granted access to the backup-dir for jeremy with the following command:

setfacl -R -m u:jeremy:rwx backup/

However... If I login with the root-user and create a new directory, for instance: /backup/server2/monthly_backup, then jeremy won’t have access to the folder.

Is there a way to make it so that both root and jeremy can read, write and execute everything in the /backup-directory?


One must remember to create a default mask for all new filesystem objects as well.

setfacl -d -m u:jeremy:rwx backup/
  • Awesome! I do need the -R-flag, in order for it to take effect on subfolders as well. So setfacl -R -d -m u:jeremy:rwx backup/ did the job. – Zeth Mar 22 '18 at 14:56

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.