Mac OS X problems and fixes

From ShawnReevesWiki
Jump to navigationJump to search

I've decided it's time to keep a repository of fixes for problems with Mac OS X, not with specific applications. Here it is.

Repair permissions

When a Mac is having problems saving files, opening files, or hanging on a procedure, it sometimes is the case that the process/user doesn't have permission to do what it wants to the file.

Repair Permissions is the appellation for the automatic repair of permissions that is a feature of Disk Utility, as well as other utilities in OS X. Here I'll list some special repair permission tricks.

In OS 10.5 and up, files have an access control list (ACL), besides the standard UNIX permissions. This list can get corrupted, and can be repaired by Disk Utility as part of Repair Disk, but it doesn't handle user folders. For that, you need one of a couple different utilities, depending on what version of OS X you're running.

Lion repair ACLs

  1. Restart Lion, and before you hear the chime, hold down the Command and R keys. This key combo tells any computer with Lion up to start from the recovery partition, from which you can do repairs, use Terminal, or install OS X.
  2. You’ll be at the Repair Utilities screen. Click the Utilities item in the Menu Bar, then click Terminal.
  3. In the Terminal window, type resetpassword and hit Return.
  4. The password reset utility window launches, but you’re not going to reset the password. Instead, click on icon for your Mac’s hard drive at the top. From the dropdown below it, select the user account where you’re having issues.
  5. At the bottom of the window, you’ll see an area labeled Reset Home Directory Permissions and ACLs. Click the Reset button there.

The reset process takes just a couple of minutes. When it’s done, exit the programs you’ve opened and restart your Mac.

Leopard and Snow Leopard repair ACLs

See Apple's guide: http://support.apple.com/kb/TS1334

Apple's earlier guide explains what permissions are and what repairing them does: http://support.apple.com/kb/HT2963

Terminal reports you are not authorized

On 2012-04-07 I tried to open Terminal in Lion and got this new-to-me message: "You are not authorized to run this application. The administrator has set your shell to an illegal value" There are plenty of solutions suggested online, many involving resetting bashrc scripts or other configuration files, but what worked for me was to restart the system. I had a hint of the problem even before I tried to open Terminal—I was trying to connect to a MySQL server through a SSH tunnel and SSH told me I didn't exist. That problem also went away with the restart.