Change Permissions Mac: 5 Ways to Fix It
In this article
To change permissions on a Mac, open Finder, select the file or folder, press Command+I to Get Info, and adjust the Sharing & Permissions section at the bottom. For system files or apps, you may need to use Terminal commands like chmod or chown. This guide covers all the methods, from the simple GUI approach to advanced command-line tools, plus common pitfalls and security considerations.
Understanding macOS Permissions
macOS uses a Unix-based permission system that controls who can read, write, or execute a file or folder. Each item has an owner, a group, and a set of permissions for the owner, the group, and everyone else (others). These permissions are represented by three characters each: r (read), w (write), and x (execute). For example, -rwxr-xr-- means the owner can read, write, and execute; the group can read and execute; and others can only read.
In the Finder, you see a simplified version of this: you can set Read & Write, Read Only, or No Access for the owner, staff group, and everyone. However, the actual permission bits are more granular, and sometimes you need to use the Terminal to get the exact result you want.
Changing Permissions with Get Info (GUI)
The most common way to change permissions is through the Finder's Get Info panel. Here’s how:
- Right-click (or Control-click) the file or folder in Finder.
- Select Get Info (or press Command+I).
- Scroll to the Sharing & Permissions section at the bottom. If it's collapsed, click the triangle to expand it.
- Click the lock icon in the bottom-right corner and enter your administrator password to make changes.
- Use the dropdown menus next to each user or group to change their privilege level (Read & Write, Read Only, etc.).
- To add a user, click the + button and select a user or group from the list.
- To remove a user, select them and click the – button.
- Close the Get Info window. Changes are saved automatically.
For folders, you'll also see a gear icon (⚙️) that lets you Apply to enclosed items—this propagates the current permissions to all subfolders and files inside. Use this carefully, as it will overwrite any custom permissions on those items.
Using Terminal: chmod and chown
When you need more control, or when the GUI won't let you change permissions (e.g., on system files), the Terminal is your friend. The two essential commands are chmod (change mode) and chown (change owner).
chmod changes the permission bits. You can use symbolic notation (like u+rwx) or octal numbers (like 755). For example:
chmod 755 myfilesets owner to rwx, group to r-x, others to r-x.chmod +x script.shadds execute permission for everyone.chmod -w file.txtremoves write permission for everyone.
chown changes the owner and group. For example:
chown username file.txtchanges the owner.chown username:staff file.txtchanges owner and group.chown -R username folderrecursively changes the owner of a folder and all its contents.
To use these commands, open Terminal (in /Applications/Utilities/), type the command, and press Return. You may need to prepend sudo to run as root, which will prompt for your password. Be very careful with sudo—it can break your system if used incorrectly.
How to Choose the Right Permissions
Deciding what permissions to set depends on what you're trying to accomplish:
- For personal files: Owner Read & Write, staff and everyone Read Only (or No Access). This keeps your data private.
- For files you want others on your Mac to edit: Set group to Read & Write, and add the relevant users to the same group.
- For executables or scripts: You need execute permission (x) for the user who runs it.
- For shared folders on a network: You might want everyone to have Read & Write, but be aware of security risks.
- For system files: Do not change permissions unless you know exactly what you're doing. Incorrect permissions can cause apps to crash or your Mac to become unstable.
A good rule of thumb: use the least permissive setting that still allows the intended task. If something doesn't work, you can always temporarily grant more access, test, then revert.
Common Problems and Fixes
Here are typical issues users encounter and how to solve them:
- Permission denied in Terminal: You don't have the necessary rights. Use
sudobefore the command, or check if the file is locked in Get Info. - Grayed-out permission menus in Get Info: The file is likely owned by root or another user. You can change the owner using
sudo chownin Terminal, or boot into Recovery Mode and use the Terminal there. - Can't modify a file even though you have Read & Write: The file might be locked (check the Lock checkbox in Get Info) or have the immutable flag set (
ls -lOwill show flags). Usechflags nouchg filenameto remove the immutable flag. - App won't open because of permissions: This often happens with apps downloaded from the internet. Go to System Settings > Privacy & Security, and click “Open Anyway” if the option exists.
- Reset home folder permissions: If your home folder permissions are messed up, you can use the “Reset Home Folder Permissions” utility in Recovery Mode, or run
diskutil resetUserPermissions / $(id -u)in Terminal.
App Permissions vs. File Permissions
It's important to distinguish between file permissions (which we've been discussing) and app permissions (like Camera, Microphone, Contacts). App permissions are managed separately in System Settings > Privacy & Security. These are not changed with chmod; they are stored in a database and can only be toggled through the GUI or by resetting the TCC database (which is not recommended). If an app says it needs access to your Photos, for example, you grant that in Privacy & Security, not by changing file permissions.
Security Considerations
Changing permissions can have security implications. For instance, setting your entire home folder to “Everyone: Read & Write” would allow any user on your Mac (or anyone with remote access) to read and modify your documents. Always be cautious when granting write access to others. Also, never set executable permissions on files that you don't intend to run—this can be a security risk if the file is malicious.
If you're troubleshooting a problem, it's often safer to first try repairing permissions with Disk Utility (in Recovery Mode) or using the “Get Info” method before resorting to Terminal. The macOS system integrity protection (SIP) also prevents you from modifying certain system files even with sudo—you'd need to disable SIP, which is not recommended for most users.
Frequently Asked Questions
How do I change permissions for all files in a folder?
In Get Info, after setting the permissions, click the gear icon and choose “Apply to enclosed items.” Alternatively, in Terminal, use chmod -R or chown -R to recursively change permissions for all contents.
What does “chmod 755” mean?
It sets the owner to read, write, and execute (7), the group to read and execute (5), and others to read and execute (5). This is a common permission set for web servers and executable files.
Why can't I change permissions on a file even as admin?
You may not be the owner of the file. Check the “Sharing & Permissions” section in Get Info—if the owner is “system” or another user, you'll need to use sudo chown to change the owner first, or use the Recovery Mode Terminal.
How do I reset all permissions to default on macOS?
There's no single command to reset all permissions, but you can use the “Reset Home Folder Permissions” utility in Recovery Mode, or run diskutil resetUserPermissions / $(id -u) for your home folder. For system files, reinstalling macOS or using the built-in repair tools is the safest route.
Is it safe to use sudo chmod on system files?
Generally, no. System files are protected by SIP, and modifying them can cause instability or security vulnerabilities. Only change system file permissions if you have a specific, well-understood need, and always back up your data first.