Want to highlight a helpful answer? Upvote!

Did someone help you, or did an answer or User Tip resolve your issue? Upvote by selecting the upvote arrow. Your feedback helps others! Learn more about when to upvote >

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Set default directory and file permissions

I'm trying to use setfacl to set the default permissions for directories and files but I get an error saying "sudo: setfacl: command not found." What I am trying to do is share a specific directory on a local external drive connected by Thunderbolt. Everyone in the group has access to the drive and can view all the files but once a new file is created, the group permissions are not updated. Here is an example of two PDF file. The one created by userA only has permissions for that user where the file created by userB allows all users to open and modity the file.


-rw------- 1 userA staff 1988176 Feb 13 15:09 TestFile01.pdf

-rwxr-----+ 1 userB staff 1827102 Feb 13 15:05 TestFile02.pdf

0: group:MarketingGroup allow read,write,append,readattr,writeattr,readextattr,writeextattr,readsecurity


I can manually update the permissions through the Get Info window but this requires me to reset permissions every time a person saves a new file to the drive. There needs to be a way to do this automatically.


Here is what I tried but the setfacl command is not supported.


sudo setfacl -Rdm g:GroupName:rwx /DirectoryPath

iMac, OS X Mountain Lion, User since 1992 Mac IIsi

Posted on Feb 13, 2013 2:48 PM

Reply
5 replies

There are no replies.

Set default directory and file permissions

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.