About Disk Utility's Repair Disk Permissions feature
Summary
Disk Utility lets you verify and repair Mac OS X disks and permissions issues. This article explains the Repair Disk Permissions feature of Disk Utility.
Products Affected
Mac OS X 10.6, Disk Utility, Mac OS X v10.0, Mac OS X v10.1, Mac OS X v10.2, Mac OS X v10.3, Mac OS X v10.4, Mac OS X v10.5
How does Disk Utility check file permissions?
Many things you install in Mac OS X are installed from package files (whose filename extension is ".pkg"). Each time something is installed from a package file, a "Bill of Materials" file (whose filename extension is ".bom") is stored in the package's receipt file, which is kept in /Library/Receipts/ in Mac OS X v10.5 and earlier. These files don't take up much disk space and you shouldn't put them in the Trash. Each of those ".bom" files contains a list of the files installed by that package, and the proper permissions for each file.
In Mac OS X v10.5 or earlier, when you verify or repair disk permissions Disk Utility reviews each of the .bom files in /Library/Receipts/ and compares its list to the actual permissions on each file listed. If the permissions differ, Disk Utility reports the difference (and corrects them if you use the Repair feature).
Does Disk Utility check permissions on all files?
Files that aren't installed as part of an Apple-originated installer package are not listed in a receipt and therefore are not checked. For example, if you install an application using a non-Apple installer application, or by copying it from a disk image, network volume, or other disk instead of installing it via Installer, a receipt file isn't created. This is expected. Some applications are designed to be installed in one of those ways.
Also, certain files whose permissions can be changed during normal usage without affecting their function are intentionally not checked.
Tip: If you remove receipts from /Library/Receipts/, the files installed by those packages cannot be verified or repaired, which is why you shouldn't delete things from /Library/Receipts/ . See Disk Utility shows a "No Valid Packages" alert.
Mac OS X v10.5 or later: While started from the Leopard Install DVD, a user's home directory permissions can be reset using the "Reset Password" utility.
Should I start up from a Mac OS X install disc to repair disk permissions?
When possible, disk permissions should be repaired while started up from a Mac OS X volume (hard disk) that contains Mac OS X, instead of a Mac OS X installation disc. Mac OS X software updates may change permissions on some files to improve security. When this occurs, the version of Disk Utility on the Mac OS X volume is updated to account for the new permissions. Running Disk Utility while started from the Mac OS X volume ensures that the changes made by software updates are preserved.
Mac OS X v10.6 Snow Leopard notes:
- In Mac OS X v10.6.x, Disk Utility can only verify/repair permissions of other Mac OS X v10.6.x disks. If you need to verify/repair a Mac OS X v10.5.x or earlier Mac OS X version, use a Leopard or earlier disk.
- You don't need to repair disk permissions prior to installing Mac OS X v10.6 over a previously-installed OS. The Installer will do this automatically.
Twitter
Facebook