10 essential tasks to keep Leopard purring

Keep Mac OS X Leopard in tip-top condition with these maintenance steps

1 2 3 4 5 6 Page 4
Page 4 of 6

5. Verify and delete preferences files

Another common cause of application crashes and other problems is corrupted preferences files. These are the files that system components and applications use to store settings. In Mac OS X, preferences files are stored as XML property list (.plist) files. You can verify whether a preference file is corrupt by using JNSoftware's Preferential Treatment (donationware), a graphical interface to the plutil command available in Terminal.

Although this tool doesn't know what data should be in a property list file or exactly what the various sections (known as keys) relate to in terms of the settings available to a given application, it can verify whether the data is packaged in the correct format and is readable.

It doesn't always work perfectly, and in some cases, it might report a file damaged when it isn't, but it's pretty good most of the time. By using it to verify your preferences files, you can detect corrupted files and delete them before the problem becomes bigger -- although doing so will result in a loss of settings for the affected application.

One lesser-known feature of Leopard is that it has some built-in capability for responding to corrupted preferences files. If an application crashes repeatedly at launch, Leopard will ask if you want to open the application without using the existing (and potentially damaged) preferences file for it. If you say yes and the application launches and runs cleanly, you can delete the preferences file. If it continues to crash, there's likely another cause.

Although this automates troubleshooting application crashes caused by corrupt preferences files, it does mean that applications have to experience severe enough problems that they can't even launch in order to trigger the feature. Verifying your preferences with Preferential Treatment every couple of months (or more frequently if you are experiencing application crashes) can prevent things from reaching that stage.

6. Verify and repair file permissions

Like all versions of Mac OS X, Leopard is a Unix operating system at heart, which means that every file on your hard drive has permissions that define who can access, change or delete it. In addition to the user accounts you create for yourself and others to log in to your Mac, there are a number of system-user accounts that Leopard relies onto manage everything from the Spotlight search feature to the Installer utility. And, of course, there is the root user, which has complete authority over all user and system files.

Likewise, Leopard relies on a series of system-level groups to manage file permissions for both system and regular user accounts. Many system and application files have specific permissions that ensure the appropriate system processes; system-level accounts can not only access them, but also secure them from intentional or inadvertent access.

However, changes to the permissions of system and application files sometimes do happen -- perhaps by a power user or would-be hacker changing permissions to allow access to certain files, or by application or driver installers that overwrite or modify existing files, or even just by running some poorly designed applications.

If the permissions on these files are altered, the results can range from general erratic behavior to a nonfunctioning application to a Mac becoming vulnerable to network attack.

Verifying file permissions

Verifying file permissions.

Click to view larger image.

To ensure that the permissions on system and application files are set appropriately, run Disk Utility's Verify Disk Permissions feature. This shouldn't affect any user home folders or documents.

This feature isn't entirely perfect. It relies on the contents of the /Library/Receipts folder on the Mac's hard drive, where any installer you run will deposit information about the files it installed or modified, including the permissions for those files at the time of installation. For most people, this can serve as a troubleshooting step rather than a regular maintenance task.

This allows Disk Utility to compare a file's current permissions to what they were originally or to restore the expected permissions. In the majority of cases, there should only be a handful of differences, and resetting or repairing them (by choosing Repair Disk Permissions) can prevent problems.

In some cases, there may be a reason changes have been made -- such as if an application or device driver requires access to some files -- which itself can create problems, though this is generally not an issue for most users. (If you notice that a particular piece of software or device isn't functioning normally after repairing permissions, you might want to check the developer's Web site to see if there are known issues related to specific permission requirements. Typically, reinstalling the affected software will resolve these rare situations.)

1 2 3 4 5 6 Page 4
Page 4 of 6
  
Shop Tech Products at Amazon