I've created an NFS mountpoint with rw permissions. How do I set new files in a directory to be created by a specific user/group with certain permissions?

  • You can use setfacl – Ramesh Apr 25 '14 at 16:36
  • setfacl is not working: testfile: failed to set acl entries setacl error: Operation not applicable – Ken J Apr 25 '14 at 18:53

chown a file to any particular user/group that you need and then follow the below steps.

ACLs are applied to directories and files. You can't apply them to a group, at least not directly. You can apply them to all files/directories a group owns, by chaining with find:

find /home/username/filename -group «some-group» -type d -exec setfacl -m u:username:rx '{}' '+'


Please refer to derobert's answer to my old question here.

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.