How to change file permissions of ALL FILES included in a folder and its subfolders?

I changed the permissions in the main folder but not a single folder or included file were updated and…

it's for 2387 files!


Thanks for any help :-)

Mac mini

Posted on Nov 4, 2023 3:05 AM

Reply
Question marked as ⚠️ Top-ranking reply

Posted on Nov 4, 2023 7:06 AM

In the Finder, select the main (parent) folder. Then do GetInfo (CMD-I). Unlock the Sharing & Permissions pane. Change privileges as desired. Then click the little gear icon and select Apply to enclosed items.


Be very careful with this, as it WILL change the permissions on EVERY child folder & file.


10 replies
Sort By: 
Question marked as ⚠️ Top-ranking reply

Nov 4, 2023 7:06 AM in response to DLWorldCitizen

In the Finder, select the main (parent) folder. Then do GetInfo (CMD-I). Unlock the Sharing & Permissions pane. Change privileges as desired. Then click the little gear icon and select Apply to enclosed items.


Be very careful with this, as it WILL change the permissions on EVERY child folder & file.


Reply

Nov 4, 2023 3:40 AM in response to DLWorldCitizen

Use the Apply to enclosed item in the … menu button. Be careful with that as it will propagate ACLs if there are any set on the topmost folder. Best to use chmod in Terminal if that is the case. Or, remove the ACL, then add it back when done, but that would require using chmod in Terminal anyway.

Reply

Nov 4, 2023 7:22 AM in response to DLWorldCitizen

You should not be recursively changing permissions (or ownership) of a folder's contents where you personally did not create the folder in question. Not in Finder nor in the Terminal.


And your term "main folder" whether it is your HOME user folder or some other destination could very well require you to perform a clean reinstallation of the operating system and a restore from your Time Machine backup prior to this misadventure.

Reply

Nov 4, 2023 8:07 AM in response to MartinR

One of the participation challenges in these communities is knowing how to do something, but realizing that some shared knowledge that is misunderstood, or in the wrong hands can actually create a larger problem, and thus should not be shared. 😉

Reply

Nov 4, 2023 1:49 PM in response to VikingOSX

• I'm owner of all of them

• with main folder I mean the one where all 2387 files below should have those permissions.

I've thousands of folders (because I've almost half a million of files) and I'm (also) using the finder as a database.

It were juste those 2387 files which needed to change their permission settings.

besides I don't like Time machine because it eats of enormous amounts of space (especially as, like I do, you need to edit hundredth of files a week).

Dear VikingOSX, don't worry I know exactly what I do. All those files ARE data files and they are all on an ext. HD.

Have a nice weekend :-)

Reply

Nov 4, 2023 2:10 PM in response to DLWorldCitizen

If you had worded things differently and shared that the main folder whose hierarchy you wanted to alter is located on an external drive, then my response would have been entirely different, or more likely, I would not have responded at all since it was already handled.


Enjoy your weekend as well.



Reply

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.

How to change file permissions of ALL FILES included in a folder and its subfolders?

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