Before we get started
After spending over 20 years working with Macs, both old and new, theres a tool I think would be useful to every Mac owner who is experiencing performance issues.
CleanMyMac is highest rated all-round cleaning app for the Mac, it can quickly diagnose and solve a whole plethora of common (but sometimes tedious to fix) issues at the click of a button. It also just happens to resolve many of the issues covered in the speed up section of this site, so Download CleanMyMac to get your Mac back up to speed today.
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:
- Select the file, folder or application whose permissions you want to view and edit
- Choose File -> Get Info from the Finder menu or use COMMAND + I
- 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.
The options displayed are usually as follows, but No Access may not always be a valid option (e.g. for administrators):
- Read & Write
- Read only
- Write only (Drop Box)
- No Access
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.
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.
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:
- Open Terminal from the Applications folder or using Spotlight
- At the command prompt, navigate to the directory that contains the item(s) you want to edit. For example cd Documents/Work
- 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
- Use the chmod command to change permissions. Chmod has dozens of options so the manual pages must be read carefully
- 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.
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:
- Restart your Mac and hold down COMMAND + R during restart to open the Repair Utilities screen
- In the menu bar, click on Utilities and then select Terminal
- Terminal will open, and at the command prompt type resetpassword
- 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
- 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.