File Permission Inheritance?

I have setup inheritance but files copied to the folder are not inheriting the folders permissions. If I create a subfolder the subfolder inherits the permissions but not the files. In Server on the storage tab I have set inheritance to apply to child files and have propagated these permissions. However, as I say permission inheritance for files is not working so I'm wondering if this is this even possible on a mac? I have Sierra OS installed. Any ideas?

MacBook Air (13-inch Mid 2012), OS X Mavericks (10.9.2), iPhoto

Posted on Nov 19, 2016 7:27 PM

Reply
11 replies

Nov 24, 2016 1:22 PM in response to Bensjunk

From a terminal session issue the command

man chmod

and look at the acl's


And unless you are using an Account Server to provide use credentials, every user is local to the Mac. Someone accessing your Mac from a remote system will be mapped into a local account. When they create a file, just check to see what the ownership is, and use that in your acl settings.


Then add that chmod command to the Automator Folder Action.

Nov 24, 2016 11:00 PM in response to BobHarris

Hi Bob,


Making progress...I have a script that works for a folder, the next step is when a subfolder is created I need the currently assigned automator folder action script to automatically associate the currently defined automator folder action script to the newly created subfolder, is that possible?


Basically I need to automate the same folder action script to be assigned as a folder action script to every subfolder when it is created automatically.

Nov 25, 2016 5:52 AM in response to Bensjunk

Sorry, I do not have any personal magic for dynamically attaching a Folder Action to a newly created folder from an existing Folder Action. 😟


Maybe someone else has some ideas.


If time is not critical, AND the Folder tree is not HUGE, you could create something that wakes up every so often and just applies a

chmod -R ...your.stuff.here...

to just brute force the changes.


But if the interval was too frequent, or the size of the Folder tree was too big, you could be putting a lot of CPU and I/O load on your system that might interfere with normal operations.


I guess if you want to try and attach folder actions to new folders, you could figure out what kind of .plist is created and stored in what directory, then dynamically create a new plist and attach it using the launchctl command. Technically I think it could be done, but I have never tried it, so I don't know what the .plist would look like, nor where it would be stored, nor what the launchctl command to enable it would look like.


And if you are going down this path, you would have to keep in mind what happens when a given sub-folder was deleted. How do you clean up all the folder action scripts you created that no longer have a object to monitor?


But if you want to go down this path, then warm up your "Google Foo" and start researching.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

File Permission Inheritance?

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