"Apply to enclosed items..." via script

akamenev47
Contributor II

Sorry if there is already discussion on this, I could not find.

Is there a way to somehow re-apply "Apply to enclosed items..." via Terminal onto certain folder?
e7df12de0266450cac3b0db6c47671a7

Ahoy!
3 REPLIES 3

SGill
Contributor III

-R after many commands will propagate the change downward from that directory- i.e.:

chmod -R 755 /Volumes/yourVolume/yourFolder

akamenev47
Contributor II

@SGill, tried that, however it does not apply the same permissions to folders and files inside the "main" share folder. I did not include the /Volumes/yourVolume/ info, just applied the chmod command directly to the folder, not sure if that matters here.

Ahoy!

SGill
Contributor III

You'll have to use a combo of both chmod and chown to get things the way you want. See this:

Permissions-Tech Republic