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

I've set up a Linux server accessible with ssh and Samba share. Every user has his own folder USER/ and a public folder USER_public/. Permissions on the USER_public/ are set up using setfacl in such way that every new file created in that folder inherits permissions and ownerships from the parent directory (in this case, read and write permissions for others).

The problem I have is that files that are moved from USER/ to USER_public/ do not inherit these permissions automatically.

Is there a way of making the moved (copied) files to inherit permissions from the parent directory automatically. I want to avoid users manually connecting via ssh and changing the permissions using chmod.

Thank you.

Edit : getfacl output :

# file: user1_public
# owner: user1
# group: group1
# flags: -s-
share|improve this question
Have you created the acl with -d? Also, please add the output of getfacl for the public directory. – GnP Feb 5 '14 at 15:25
I've modified the original post. Thanks. – djole_djole Feb 5 '14 at 16:25

Your Answer


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

Browse other questions tagged or ask your own question.