Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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.

share|improve this question
possible duplicate:… – Lorenzo Von Matterhorn Jan 11 '13 at 1:55
I don't want to share just a single folder, but everything by that user – hoju Jan 12 '13 at 11:48
up vote 4 down vote accepted

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
share|improve this answer
thanks! - was not aware of the default feature – hoju Jan 15 '13 at 1:08
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. – grawity Jan 15 '13 at 9:53

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

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

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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