Site icon ChrisWrites.com

How to Troubleshoot User Permission Issues in Mac OS X Lion

If you are having trouble with user permissions of files and applications in OS X Lion, there are a couple of ways to correct them. User permission issues can prevent Spotlight from finding certain items, or some files and folders may be completely inaccessible to you.

This tutorial describes how to change access rights to items on your computer, as well as how to perform a full reset on all your Home Directory permissions and Access Control Lists (ACLs) to revert them back to the original state (see PART 2).

PART 1: How to View and Change File Permissions

METHOD 1: In Finder

It’s very simple to edit user permissions on individual files, folders and applications without having to resort to the command line Terminal:

  1. Select the file, folder or application whose permissions you want to view and edit
  2. Choose File -> Get Info from the Finder menu or use COMMAND + I
  3. The Get Info window opens and shows the item’s permissions in the Sharing & Permissions section. Under the Privilege column, click on the drop-down arrows to show the available options. Here you can choose which option to set.
User file permissions within the Get Info window

The options displayed are usually as follows, but No Access may not always be a valid option (e.g. for administrators):

If the padlock icon is displayed in the lower righthand corner, you’ll be prompted to enter the Admin password before any changes can be applied.

The actions button (the gears icon) at the bottom of the window presents a few more options to change the item’s owner, or apply the changes to all of the enclosed items and subfolders. If you make any changes and subsequently change your mind, there’s also a useful option to revert the changes back to the previous settings.

Additional options to edit permissions

Lastly, you can use the + and buttons to add or remove individual users and set their permissions on the item. For example, the + button presents a choice of usernames to add to the permissions list, and also allows you to add a new username by creating a new user account.

Adding additional users to the file permissions list

METHOD 2: Using Terminal

More advanced users that are already familiar with UNIX-style commands may prefer to use Terminal’s chmod command to change file permissions and Access Control settings. However, the first method mentioned above is far simpler and can achieve the same results.

The built-in manual can be used to obtain more details about each command. For example, type man chmod into the Terminal window to display its detailed help page and usage information.

The basic steps are:

  1. Open Terminal from the Applications folder or using Spotlight
  2. At the command prompt, navigate to the directory that contains the item(s) you want to edit. For example cd Documents/Work
  3. Type the command ls -l to view (in long format) the contents of the folder and each item’s permissions. The directory contents are displayed with various symbols in the first column to indicate permissions (Read, Write, and Execute) for Users, Groups and Others
  4. Use the chmod command to change permissions. Chmod has dozens of options so the manual pages must be read carefully
User permissions shown in Terminal
Examples:
  • To assign the current user read, write and execute permissions: chmod u+rwx <filename>
  • To assign the current user full access, but restrict write access to Groups and Others: chmod u=rwx, go=rx <filename>
  • To remove all permissions for Groups and Others: chmod go= <filename>

PART 2: How to Repair User Permissions

A Note About Disk Utility

You might expect that Disk Utility’s Repair Disk Permissions feature (see below) can fix any problems with your permissions. However, this is not the case as it doesn’t resolve issues with the Home Folder.

Verify and Repair disk permissions in Disk Utility - doesn't fix Home Folder issues

Using Repair Utilities to Reset User Permissions

The most effective way to completely reset your Home Folder’s permissions and ACLs back to their original state is to restart your computer and use the Repair Utilities.

Follow the steps below:

  1. Restart your Mac and hold down COMMAND + R during restart to open the Repair Utilities screen
  2. In the menu bar, click on Utilities and then select Terminal
  3. Terminal will open, and at the command prompt type resetpassword
  4. The Reset Password tool opens, but note that we won’t actually change the password. Instead, select the hard disk and the relevant user account from the drop-down menu
  5. In the area called Reset Home Directory Permissions and ACLs, click the Reset button to reset everything

Resetting all the user permissions takes just a few minutes. When the process is complete, restart your computer and everything should be back to normal.

Exit mobile version