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