diskutil repairPermissions /You could also send some environmental variables from your patch management tool for the boot volume, but in this simple instance we’re just going to run it, with the following type of output:
Started verify/repair permissions on disk0s2 Macintosh HD Permissions differ on "Library/Application Support"; should be drwxr-xr-x ; they are drwxrwxr-x Repaired "Library/Application Support" Group differs on "Library/Printers/InstalledPrinters.plist"; should be 80; group is 0 Permissions differ on "Library/Printers/InstalledPrinters.plist"; should be -rw-rw-rw- ; they are -rw-r--r-- Repaired "Library/Printers/InstalledPrinters.plist" [ \ 0%..10%..20%..30%..40%..50%..60%..70%................ ] 74% 0:00:34 Finished verify/repair permissions on disk0s2 Macintosh HDYou could get much more complicated, writing the output to syslog or even a syslog server. You can also have metapackages that just do a bunch of tasks and call them things like “Try to fix my computer.” Provided you have a patch management tool, you could also just scope some devices and push some of these things out en masse; however, for the most part, I’m a fan of self service, so that’s the example I’m using this for.
krypted October 28th, 2013
Posted In: Mac OS X