How to manage file and folder permissions on Mac

To manage file and folder permissions on a Mac, select the item in Finder, press Command-I to open Get Info, unlock Sharing & Permissions, and set each user or group to Read & Write, Read only, Write only (Drop Box) or No Access.

Advertisement

This guide covers what each setting means, how to read permissions in Terminal, changing owners and groups, applying settings to a whole folder, app access in Privacy & Security, and fixes for "You don't have permission" and "Permission denied" errors.

macOS Get Info window showing Sharing & Permissions privilege list
The lock icon at bottom right must be unlocked with an administrator password before changing any privilege. (Image: Apple)

The fastest way to change permissions on a Mac

The Info window in Finder is the route Apple documents for every file, folder and disk. It works the same on macOS Tahoe, Sequoia, Sonoma and earlier versions.

  1. Select the file, folder or disk in Finder, then choose File > Get Info (or press Command-I).
  2. If Sharing & Permissions is collapsed, click the arrow next to it. You may need to scroll down.
  3. Click the lock icon at the bottom right and enter an administrator name and password.
  4. Select a user or group in the Name column.
  5. Click the pop-up menu next to that name and choose Read & Write, Read only, Write only (Drop Box) or No Access.
  6. Close the Info window to keep the change.

Changed the wrong entry? Before you close the window, click the Action pop-up menu at the bottom and choose Revert changes.

Which method should you use?

Most people only ever need the Info window. Pick the row that matches the job in front of you.

Your situation Use this Why
Let another user read, edit or stay out of one item Get Info > Sharing & Permissions privilege menu Four plain choices, no commands
A whole folder of files needs the same access Action pop-up menu > Apply to enclosed items Copies the folder's settings to everything inside it
A file belongs to another account Action pop-up menu > Make [user name] the owner Only the owner and administrators control the item
A script will not run or you work in Terminal anyway chmod with a three-digit number Sets owner, group and other access in one command
An app cannot open your Desktop, Documents or Downloads files System Settings > Privacy & Security > Files & Folders App access is a separate privacy control, not a file permission
Files on an external drive show as locked to you Ignore ownership on this volume in the drive's Info window The Mac treats every file on the drive as yours
Errors keep coming back across many files Disk Utility First Aid Repairs formatting and directory errors on the disk

Understanding Permissions

Every file, folder and app on a Mac has permission settings that decide which accounts can read it, change it or run it. Under the hood, macOS uses BSD permissions for three user categories: the owner, a group, and everyone else (other).

The owner is usually the account that created the item. Administrators belong to the admin group, and standard accounts belong to the staff group. Finder shows these same categories in the Name column of Sharing & Permissions.

Finder privilege level What that user or group can do Typical use
Read & Write Open the item and change it Your own files, or a shared project folder
Read only Open the item, but not change its contents Reference files other accounts should see but not edit
Write only (Drop Box) Copy items into the folder, but not open it; only the owner can open it A hand-in folder for other users on the Mac
No Access Nothing; all access is blocked Private folders on a shared Mac

Privacy controls sit on top of this. Since macOS 10.15, apps also need your consent before they reach Documents, Downloads, Desktop, iCloud Drive and network volumes, even when file permissions allow it.

Advertisement

Numeric Representation of Permissions

Terminal writes permissions as three digits: one for the owner, one for the group and one for other. Each digit from 0 to 7 is a sum of read (4), write (2) and execute (1).

Digit Letters in ls -l Meaning
0 --- No permissions
1 --x Execute only
2 -w- Write only
3 -wx Write and execute
4 r-- Read only
5 r-x Read and execute
6 rw- Read and write
7 rwx Read, write and execute

Common combinations: 755 (owner full access, everyone else read and run) suits scripts and folders, 644 (owner read and write, others read) suits documents, and 711 lets others pass through a folder without listing it. With the default umask of 022, new files get 644 and new folders get 755.

On a folder, read lets a user list its contents, write lets them add, rename or delete items inside, and execute lets them open or search through it.

Viewing Permissions

Finder shows the friendly privilege names. Terminal shows the raw letters, the owner and the group, which is faster when you check several items. New to Terminal? See how to open Terminal on Mac.

Advertisement
  1. In Finder: select the item and press Command-I. Expand Sharing & Permissions to see each name and its privilege.
  2. In Terminal: open Terminal, type cd followed by the folder path, and press Return.
  3. Type ls -l and press Return to list every item in that folder with its permissions.
  4. To check one folder itself rather than its contents, type ls -ld foldername and press Return.
  5. Read the first column. The first character is the type: - for a file, d for a folder, l for a symbolic link.
  6. Read the next nine characters in three sets: owner, group, other. For example, drwxr-xr-x is a folder the owner can change and everyone else can only open.
  7. Read the third column for the owner and the fourth for the group, for example steve staff.

Apply permissions to everything inside a folder

Changing a folder in Get Info does not change the files already inside it. Use Apply to enclosed items when every file and subfolder should match.

  1. Select the folder or disk in Finder, then choose File > Get Info.
  2. Expand Sharing & Permissions by clicking the arrow next to it.
  3. Click the lock icon and enter an administrator name and password.
  4. Set the privileges you want on the folder itself first.
  5. Click the Action pop-up menu at the bottom of the window and choose Apply to enclosed items.
  6. Wait for macOS to finish updating the enclosed items before you close the window.

This is a one-time copy. It replaces the BSD permissions on every enclosed item, and files you create later still get default permissions. Check the folder's own settings before you apply them.

Changing Permissions via Terminal

Use chmod when you need an exact numeric mode, such as making a shell script executable. You can only change permissions on items you own; prefix the command with sudo and enter an administrator password for items you do not own.

chmod 755 YourScriptName.sh

chmod sets the permission bits. 755 gives the owner read, write and execute, and gives the group and other users read and execute. Run cd into the file's folder first, or type the full path instead of the file name. Use chmod 644 filename for a document only you should edit, or chmod 711 foldername for a folder others can pass through but not list.

Advertisement

You should see: No output. Run ls -l YourScriptName.sh and the first column reads -rwxr-xr-x. A script can now run with ./YourScriptName.sh.

Changing Ownership and Group

Only the owner and administrators control an item's permissions, so a file copied from another account or another Mac often needs a new owner. Finder handles the owner; Terminal also changes the group.

  1. Select the item in Finder and choose File > Get Info.
  2. Expand Sharing & Permissions, click the lock icon, and enter an administrator name and password.
  3. If the new owner is not in the Name column, click the Add button below the list, select the user, then click Select.
  4. Select the new owner in the Name column.
  5. Click the Action pop-up menu and choose Make [user name] the owner.
  6. To change ownership in Terminal instead, run sudo chown username filename and enter your administrator password.
  7. To change only the group, run sudo chgrp groupname filename. Type man chown or man chgrp in Terminal for every option.

Changing a file's owner switches off its setuid and setgid bits unless the change is made as root, which stops a modified program from keeping elevated rights.

Add or remove a user or group

The Name column only lists accounts with an explicit setting. Add a person or group to give them their own privilege, or remove them to fall back to the general setting.

  1. Select the item and choose File > Get Info.
  2. Expand Sharing & Permissions and click the lock icon to unlock it.
  3. To add someone, click the Add button below the list, select the user or group, then click Select.
  4. Choose their privilege from the pop-up menu next to their name.
  5. To remove someone, select them in the Name column and click the Remove button below the list.
  6. Close the window, or choose Action > Revert changes first to cancel.

Special Permissions

Beyond read, write and execute, each item has three special bits, written as a fourth leading digit in numeric modes. macOS also supports access control lists (ACLs) and BSD file flags, which override the basic permissions.

Special permission Effect on a file Effect on a folder
Setuid (4000) A program runs with the file owner's user ID instead of the person running it New items inside take the folder's owner
Setgid (2000) A program runs with the file's group ID New items inside take the folder's group
Sticky bit (1000) No effect in macOS Only the item's owner, the folder's owner or root can delete or rename items inside
ACLs An ordered list of allow and deny entries per user or group, checked before the basic permissions Entries can be inherited by new files and subfolders
BSD file flags (chflags) uchg stops the file being moved, renamed or deleted; uappnd allows appending only The same flags apply to folders

A setuid program owned by root runs with root privileges for anyone, so it is a security risk. Leave these bits alone unless software documentation tells you to set them. To clear a flag, add no in front of its name, for example chflags nouchg filename.

Lock a file so it cannot be changed

Locking is lighter than a permission change. It protects a closed document from accidental edits and asks for confirmation before it goes to the Trash.

  1. Select the document in a Finder window or on the desktop.
  2. Choose File > Get Info.
  3. Click the arrow next to General if that section is collapsed.
  4. Select the Locked checkbox.
  5. To unlock it later, deselect Locked in the same place.

Anyone can unlock a locked document, so it is not a password. To protect folders and disks, change their permissions instead, or put the files in a password-protected ZIP on Mac.

Control which apps can access your files and folders

File permissions decide which accounts get in. Privacy & Security decides which apps get in. An app blocked here fails even when the file itself is set to Read & Write.

  1. Choose Apple menu > System Settings, then click Privacy & Security in the sidebar. You may need to scroll down.
  2. Click Files & Folders.
  3. For each app in the list, turn access to each location (such as Desktop, Documents or Downloads) on or off.
  4. Go back and click Full Disk Access for apps that need every file, including Mail, Messages and Safari data, Time Machine backups and some administrative settings.
  5. Turn the switch on for the app. To add an app that is not listed, click the Add button, select the app, then click Open.
  6. Quit and reopen the app so it picks up the new access.

On macOS 12 Monterey or earlier, the same lists are in System Preferences > Security & Privacy > Privacy. Grant Full Disk Access only to apps you trust, such as a backup tool or Terminal.

Ignore ownership on an external drive

A drive formatted on another Mac keeps that Mac's owners, so your account may be locked out. An administrator can tell your Mac to treat every file on the drive as owned by the current user.

  1. Click the Finder icon in the Dock to open a Finder window.
  2. Select the external disk, then choose File > Get Info.
  3. Click the arrow next to Sharing & Permissions to expand it.
  4. If the lock at the bottom right is locked, click it and enter an administrator password.
  5. Select the Ignore ownership on this volume checkbox.

The checkbox does not appear on a drive used for Time Machine backups. If you are not an administrator, ask the Mac's administrator to give you access to the disk.

Repair the disk with Disk Utility First Aid

First Aid finds and repairs errors in a disk's formatting and directory structure, which can cause odd file behaviour. It is not a permissions reset, so run it after the Get Info fixes fail. Back up your data first.

  1. Open Disk Utility from the Utilities folder inside Applications. For the startup disk, or a Mac that will not start, start up from macOS Recovery and choose Disk Utility > Continue.
  2. Choose View > Show All Devices.
  3. Select the last volume listed under the disk, such as Macintosh HD – Data.
  4. Click First Aid, then click Run (or Repair Disk). Enter your administrator password if asked.
  5. When it finishes, select the next item up the list and run First Aid again.
  6. Keep going up through each volume, then the container, then the disk itself.
  7. Quit Disk Utility. If you used Recovery, choose Apple menu > Restart.

If First Aid reports errors it cannot repair, Apple's next step is erasing the disk, which is why the backup comes first.

Disk Utility View menu with Show All Devices option highlighted
Choose View, then Show All Devices to reveal the container and physical disk beneath each volume. (Image: Apple)

Verifying Changes

  1. Close the Info window, reselect the item, and press Command-I again. The Name column should show the new privilege and owner.
  2. In Terminal, run ls -l in the item's folder. The first column and the owner and group columns should match what you set.
  3. Log in to the other account (or ask its user) and open the item. Read only should open it but block saving; No Access should refuse to open it.
  4. For a script, run it with ./scriptname.sh. It should start instead of returning "Permission denied".
  5. For app access, open Privacy & Security > Files & Folders or Full Disk Access and confirm the app's switch is on.

How to undo a permission change

  1. If the Info window is still open, click the Action pop-up menu and choose Revert changes. This undoes privilege, owner, and added or removed users since the window opened.
  2. If you already closed it, reopen Get Info, unlock it, and set each entry back by hand.
  3. In Terminal, run chmod again with the old number, such as chmod 644 filename for a document.
  4. Restore the item from a Time Machine backup if many files changed through Apply to enclosed items.

Troubleshooting Permissions Issues

Match the message you see to a heading below. Each fix starts with the least invasive step.

"You don't have permission to access this item"

Your account has No Access or Write only on the item, or on a folder above it.

  1. Select the item and press Command-I.
  2. Expand Sharing & Permissions and check your account's privilege.
  3. Unlock with an administrator password and set your account to Read & Write or Read only.
  4. If your name is missing, click the Add button and add yourself, or make yourself the owner.
  5. Repeat the check on the enclosing folder, since a blocked parent folder hides everything inside it.
  6. If you are not an administrator, ask the Mac's administrator to change the setting.

"Permission denied" in Terminal

The file lacks the execute bit, you do not own it, or the path sits in protected app data.

  1. Run ls -l filename and check the permission letters and owner.
  2. For a script without x, run chmod 755 filename.
  3. For a file you do not own, put sudo in front of the command and enter your administrator password.
  4. For Mail, Messages or Safari data, or Time Machine backups, add Terminal in Privacy & Security > Full Disk Access, then reopen Terminal.

Files in your home folder cannot be changed

Items copied from another account or Mac often keep the old owner.

  1. Press Shift-Command-H to open your home folder.
  2. Select the item you cannot change and press Command-I.
  3. Check that your account is the owner with Read & Write; if not, choose Action > Make [your name] the owner.
  4. For a folder of affected items, set the folder correctly, then choose Apply to enclosed items.
  5. If the item shows a Locked checkbox under General, deselect it.
  6. Run Disk Utility First Aid if the error spreads across many unrelated files.

You cannot move, copy or delete an item

The file is open, locked, the destination is read-only, or permissions block the move.

  1. Quit any app that has the file open.
  2. Unlock the file in Get Info if it shows a lock.
  3. Check the destination has enough free space.
  4. For an external drive, confirm it is APFS, Mac OS Extended or exFAT; NTFS drives are read-only on a Mac.
  5. Check permissions on both the item and the destination folder.

An app cannot open or save files in Desktop, Documents or Downloads

The app has not been granted access in the privacy settings.

  1. Open System Settings > Privacy & Security > Files & Folders.
  2. Find the app and turn on access for the location it needs.
  3. If the app needs every file, turn it on under Full Disk Access instead.
  4. Quit and reopen the app.

iCloud Drive files will not sync because of permissions

Some items in iCloud Drive have permissions your account lacks.

  1. Click the Finder icon in the Dock and select iCloud Drive in the sidebar.
  2. Find the error message at the top of the iCloud Drive folder.
  3. Click Repair in the message.
  4. Wait for the repaired files and folders to resume syncing.

No permissions for files on an external disk

The drive's files are owned by accounts from another Mac.

  1. Select the disk in Finder and choose File > Get Info.
  2. Unlock Sharing & Permissions with an administrator password.
  3. Select Ignore ownership on this volume.
  4. If the option is missing, the drive is a Time Machine backup disk; change individual item permissions instead.

Best Practices for Managing Permissions

A permission that is too open exposes files, and one that is too tight can stop apps from working. These habits keep both problems away.

Practice What to do Why it matters
Principle of least privilege Give each user Read only unless they genuinely need to edit Fewer accounts can damage or delete the files
Regular audits Recheck Get Info or ls -l on shared folders after adding or removing accounts Old entries keep access after a person leaves the Mac
Use groups wisely Grant access to a group rather than to many individual users One change updates everyone in the group
Back up important files Keep a current Time Machine backup before bulk changes Apply to enclosed items changes every file at once, and First Aid can end in an erase
Leave system folders alone Do not change permissions on macOS system files or set a system-wide umask Apple warns this can break apps or weaken security
Grant app access sparingly Allow Full Disk Access only to apps that need it It includes other apps' data and backups

Frequently Asked Questions

How do I change permissions on a Mac?

Select the file or folder, choose File > Get Info, and expand Sharing & Permissions. Click the lock icon, enter an administrator password, then choose a privilege for each user or group. The options are Read & Write, Read only, Write only (Drop Box) and No Access.

How do I check permissions on a Mac?

Select the item in Finder and press Command-I, then look at Sharing & Permissions at the bottom. In Terminal, run ls -l in the folder to see the permission letters, the owner in the third column and the group in the fourth.

How do I access permissions on a Mac?

File permissions live in each item's Info window under Sharing & Permissions. App permissions for files are in System Settings > Privacy & Security, under Files & Folders and Full Disk Access. On macOS 12 or earlier, look in System Preferences > Security & Privacy > Privacy.

How do I allow permission on a Mac for an app?

Open System Settings > Privacy & Security and click Files & Folders, then turn on the locations the app needs. For access to every file, click Full Disk Access and turn on the app, adding it with the Add button if it is missing.

How do I fix "You don't have permission" on a Mac?

Open Get Info on the item, unlock Sharing & Permissions, and give your account Read & Write or Read only. If your account is not listed, add it or make yourself the owner. Check the enclosing folder too, because a blocked parent folder hides the items inside.

How do I fix no permissions on a file?

Make your account the owner through Action > Make [user name] the owner in Get Info, then set it to Read & Write. On an external drive, select Ignore ownership on this volume instead. In Terminal, sudo chown changes the owner of a file you do not own.

How do I get rid of permissions on a Mac?

Select the user or group in the Name column of Sharing & Permissions and click the Remove button below the list. To block someone instead of removing their entry, set their privilege to No Access. Unlock the section with an administrator password first.

How do I fix a download with no permissions on a Mac?

Select the downloaded file, press Command-I, and make sure your account owns it with Read & Write. If the app you use to open it is blocked, turn on its Downloads access in Privacy & Security > Files & Folders. For a script, run chmod 755 on it.

Does Disk Utility repair permissions on a Mac?

Disk Utility's First Aid repairs errors in a disk's formatting and directory structure, not individual file permissions. Use it when errors affect many files or the Mac behaves oddly. Change single items in Get Info and back up before running First Aid.

What does Apply to enclosed items do?

It copies a folder's current permissions to every file and subfolder inside it. The copy happens once, so files created later get default permissions. It replaces the existing settings on those items, so set the folder correctly and have a backup before you use it.

Philip Celasco

Philip is a Texas-based technology writer and IT administrator at Techdows.com with more than 10 years of experience creating practical content for everyday users and professionals. He specializes in web browsers, particularly Chromium-based platforms such as Google Chrome, Microsoft Edge, Brave, and Opera. Through his work as an IT administrator, Philip has hands-on experience managing devices, configuring browser policies, troubleshooting software and network issues, and helping people resolve problems that affect productivity and security. His articles are based on practical testing and real-world technical experience. He covers browser settings, extensions, performance problems, privacy controls, security features, and Windows troubleshooting. Outside work, Philip enjoys the quieter side of life in Texas and stepping away from the screen when he can. He has two kids, two cats and loves to play golf with his mother during the weekends.

Leave a Reply

Your email address will not be published. Required fields are marked *