How can I give userA access to all files created by userB / userC, including rwx permission?

Is there a way to do this without giving root access?

Adding to same group won't work because not all the files will have group access. And setfacl can be executed on current files but does not apply to future files created.


Use ACLs.

setfacl -R -m user:User:rwX /some/path

(note upper-case X)

setfacl does apply to future files created, if you also set the "default" ACL:

setfacl -R -m default:user:UserA:rwx /some/path
  • is the executable permission for default intentionally lowercase? – hoju Jan 15 '13 at 3:26
  • @Richard: When setting default permissions, both X and x appear to have the same effect. – user1686 Jan 15 '13 at 9:53

You can give userA sudo rights to become userB / userC. Would that do it?

  • need to have same permission as if that user, so sudo would not work – hoju Jan 15 '13 at 0:25

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.