Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

Change File Permissions Mac: The Complete Guide

· 7 min read · Home Tech

In this article
  1. Understanding macOS File Permissions
  2. How to View Permissions
  3. Changing Permissions with Finder (Get Info)
  4. Changing Permissions with Terminal (chmod)
  5. Common Use Cases and Examples
  6. Common Problems and Troubleshooting
  7. Permissions vs. Sharing vs. ACLs
  8. Safety and Best Practices
  9. Frequently Asked Questions

To change file permissions on a Mac, you use the Get Info window or the Terminal's chmod command. The Get Info method is visual and beginner-friendly, while chmod offers precise control for advanced users.

Understanding macOS File Permissions

macOS, like other Unix-based systems, controls access to files and folders through permissions. Each file has an owner, a group, and a set of permissions for three categories: the owner, the group, and everyone else (others). Permissions can be read (r), write (w), and execute (x). For folders, read means listing contents, write means adding or deleting items, and execute means entering the folder.

These permissions are stored as a three-digit octal number (e.g., 755) or as symbolic strings (e.g., rwxr-xr-x). The first digit applies to the owner, the second to the group, and the third to others. Each digit is the sum of 4 (read), 2 (write), and 1 (execute). So 7 means read+write+execute, 5 means read+execute, and 4 means read-only.

macOS also adds a layer called “ACLs” (Access Control Lists) that allow more granular permissions, but the basic Unix permissions handle most needs.

How to View Permissions

Before changing permissions, you need to see them. There are two main ways:

  • Finder: Select the file or folder, press Command+I (or right-click and choose “Get Info”). At the bottom of the Info window, under “Sharing & Permissions,” you’ll see the owner, group, and each user’s privilege (Read & Write, Read Only, Write Only, or No Access).
  • Terminal: Open Terminal and type ls -l for the current directory. The output shows a string like -rw-r--r-- for files or drwxr-xr-x for folders. The first character indicates type (d for directory, - for file). The next nine characters are permissions in three groups of three.

Changing Permissions with Finder (Get Info)

For most users, the Finder method is sufficient and safer than the Terminal. Here’s how:

  1. Right-click the file or folder and select “Get Info.”
  2. Scroll to the “Sharing & Permissions” section. If it’s collapsed, click the triangle to expand it.
  3. Click the lock icon in the bottom-right corner and enter your administrator password.
  4. Next to each user or group, click the privilege pop-up menu and choose the desired permission: “Read & Write,” “Read Only,” “Write Only,” or “No Access.”
  5. To change the owner or group, click the gear icon and choose “Make Name the Owner” or “Apply to enclosed items…” to propagate permissions to all files inside a folder.

Important: If you don’t see the lock, you might not have admin rights. Also, changing permissions on system files (like those in /System) can break your Mac—only modify files you own or have explicit reason to change.

Changing Permissions with Terminal (chmod)

Terminal gives you precise control. The chmod command can use either numeric or symbolic modes.

Numeric mode example: To give the owner read/write/execute, the group read/execute, and others read/execute (the common 755 for folders), run:

chmod 755 /path/to/folder

Symbolic mode example: To add execute permission for everyone, run:

chmod a+x /path/to/file

Common symbolic operators: u (user/owner), g (group), o (others), a (all). Actions: + (add), - (remove), = (set exactly). Permissions: r, w, x.

To change the owner or group, use chown and chgrp. For example, sudo chown username:staff file.txt changes the owner to “username” and the group to “staff.”

Common Use Cases and Examples

  • Making a script executable: chmod +x script.sh (or chmod 755 script.sh).
  • Sharing a folder with another user: In Get Info, add the user under “Sharing & Permissions” and set their privilege to “Read & Write.”
  • Fixing “You don’t have permission” errors: Often occurs after copying files from another Mac or an external drive. Use Get Info to set the owner to your username and enable “Read & Write” for yourself.
  • Protecting a private file: Set permissions to 600 (owner read/write only) using chmod 600 private.txt.

Common Problems and Troubleshooting

If you get “Operation not permitted” even with admin rights, the file may be protected by System Integrity Protection (SIP) or have an extended attribute like “com.apple.quarantine.” For SIP-protected files (mainly system files), you cannot change permissions unless you disable SIP (not recommended). For quarantine attributes, you can remove them with xattr -d com.apple.quarantine filename.

Another issue: after changing permissions, the Finder may still show the old ones. Try refreshing by closing and reopening the Info window or restarting Finder (killall Finder in Terminal).

If you’re trying to change permissions on an external drive formatted as NTFS or exFAT, macOS doesn’t fully support Unix permissions on those filesystems—you may only be able to change them via the drive’s own settings (e.g., in Windows). For APFS and HFS+ (Mac-native), permissions work normally.

Permissions vs. Sharing vs. ACLs

It’s easy to confuse file permissions with sharing settings. “Sharing & Permissions” in Get Info is actually the same as Unix permissions—it’s just a graphical view. However, macOS also has “File Sharing” (System Settings > General > Sharing) that controls network access. Those are separate: you can have read-only Unix permissions but still share a folder over the network if the sharing settings allow it.

ACLs (Access Control Lists) are an advanced feature that allows multiple users and groups with different permissions on the same file. You can view ACLs with ls -le and manage them with chmod using +a or -a flags. For example, chmod +a "user:john allow read" file.txt adds an ACL entry. For most users, ACLs are overkill, but they solve complex sharing scenarios.

Safety and Best Practices

  • Never change permissions on system files (e.g., /System, /Library) unless you’re absolutely sure. Doing so can make your Mac unbootable or insecure.
  • Use the least privilege principle: Give only the permissions needed. For example, if a file only needs to be read, don’t give write access.
  • Back up important files before mass permission changes. Use chmod -R carefully—it recursively changes all files inside a folder, which can have unintended effects.
  • Understand the difference between owner and group: The owner is usually your user account; the group is often “staff” or “admin.” Changing the group can affect other users’ access.

Frequently Asked Questions

Why can’t I change permissions even as an administrator?

You may not be the file’s owner. In Get Info, if the lock is open but the privilege pop-ups are grayed out, you need to change the owner first (via the gear icon or chown in Terminal). Also, files with the “locked” flag (in Get Info) prevent changes until you uncheck it.

What does “Apply to enclosed items” do?

It applies the current permission settings to all files and folders inside the selected folder. It’s useful when you want to change a whole directory tree at once. Be careful—it overwrites any existing custom permissions on those items.

How do I make a file executable on a Mac?

Use Terminal: chmod +x /path/to/file. This adds execute permission for all users. If you want only the owner to execute, use chmod u+x. You can also check if it’s executable by running ls -l and looking for an “x” in the permission string.

What is the difference between 755 and 644?

755 means owner has read/write/execute (7), group has read/execute (5), others have read/execute (5). It’s typical for folders and executable files. 644 means owner has read/write (6), group has read (4), others have read (4). It’s typical for regular files that don’t need to be executed. Use 755 for folders and scripts, 644 for documents.

Can I change permissions on an external drive?

Yes, if the drive is formatted as APFS, HFS+, or exFAT. For exFAT, macOS doesn’t store Unix permissions, so the “Get Info” window may show “Read & Write” for everyone, and you can’t change it. For NTFS, macOS has read-only support by default, so you can’t change permissions unless you use third-party tools.

How do I reset permissions to default?

There’s no single “default” for all files. For your home folder, you can use the “Reset Home Folder Permissions” feature in Recovery Mode (via Disk Utility > First Aid). For specific files, you can set them to 644 (files) or 755 (folders) using chmod. For system files, you can use the “Repair Disk Permissions” feature in older macOS versions, but it’s been removed in recent versions—instead, reinstall macOS or use the Recovery tools.