Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

nelly22

macrumors 6502
Original poster
Sep 29, 2009
366
5
I would like to know what files/folders have wrong permissions and then repair permissions using Apple method and KCPM Utility and then reset some files permissions back to original what it was before repairing.

I’m pretty sure there is some unix tools or AppleScripts which goes thru all files/folders and lists permissions or just lists files which has wrong permissions.

Apple method sets all to permissions in Macintosh HD/Users/Me/ to Me read & write, staff read only, everyone read only.

https://support.apple.com/en-us/HT203538
https://www.firewolf.science/2016/0...ng-permissions-configuring-rootless-and-more/
 

superscape

macrumors 6502a
Feb 12, 2008
937
223
East Riding of Yorkshire, UK
From the above article:

Manual disk permission repair simply isn't necessary anymore. El Capitan automatically repairs file permissions during software updates and changes. So don't worry that the repair permissions option isn't available in Disk Utility anymore. It's become redundant, thanks to improved file integrity in El Cap.

...I assume this is correct, but I've not verified it myself.
 

JustMartin

macrumors 6502a
Feb 28, 2012
787
271
UK
The find command will enable you to look for specific permissions and you can also use the exec option to change those permissions. Warning unchecked code example:
Code:
find . -perm 707 -exec chmod 777 {} \;
 

superscape

macrumors 6502a
Feb 12, 2008
937
223
East Riding of Yorkshire, UK
The find command will enable you to look for specific permissions and you can also use the exec option to change those permissions. Warning unchecked code example:
Code:
find . -perm 707 -exec chmod 777 {} \;


True.

Although you need to be sure your find command is finding the right files, and know what permissions they should have. If you get it wrong then Bad Things© may occur.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.