Script for running Disk Permission Repair

Not applicable

Our network consultant suggested that we run Disk Permission Repair on all of our Mac Books to improve performance. Does anyone have a script that we could run that would accomplish this? Thanks.
Tom Queck
New Kensington Arnold School District
New Kensington, PA

2 REPLIES 2

ernstcs
Contributor III

Just create a policy that can do it to run offline perhaps.

On the advanced tab there is an option for fix permissions.

Or that same thing can be called with remote if you wanted to control when
it happened.

Or if you have a single partition system and really wanted a script:

/usr/sbin/diskutil repairPermissions disk0s2

Or by volume name:

/usr/sbin/diskutil repairPermissions "/Volumes/Macintosh HD"

Craig E

tlarkin
Honored Contributor

Running repair permissions just resets the permissions to what Apple thinks is best. I doubt it would give you performance increases. However, if this is something you really want to do there are several ways:

1) write a script using /usr/sbin/diskutil to repair your disk permisisons

2) use the built in jamf binary, /usr/sbin/jamf fixPermissions

3) Log into your JSS and create a new policy. Under the advanced tab check the box that says "repair permissions."

The last method will probably be the easiest.



Thomas Larkin
TIS Department
KCKPS USD500
tlarki at kckps.org
blackberry: 913-449-7589
office: 913-627-0351