
A “Permission denied” error on a shared folder usually means your Mac can see the folder but your account is not allowed to read, write, or change it. The fastest fixes are to reconnect with the correct account, confirm file-sharing permissions on the Mac hosting the folder, and check whether the folder is read-only or restricted by a network drive.
Quick Answer
Try these steps in order:
- Disconnect from the shared folder and reconnect using the correct username and password. 2. On the Mac sharing the folder, open System Settings > General > Sharing > File Sharing. 3. Add your user account to the shared folder and choose the appropriate privilege, such as Read & Write. 4.
What “Permission Denied” Means
Shared-folder access involves several layers of permissions:
- Sharing permissions: Determine which network users can access the shared folder.
- File and folder permissions: Determine whether a user can read, create, edit, or delete items.
- Account authentication: Confirms which user is connecting to the share.
- Network or server permissions: A NAS, Windows PC, or company server may enforce its own rules.
- Read-only restrictions: The storage device or shared connection may allow viewing but not changes.
You may be able to open a folder but still receive an error when copying files into it, renaming an item, or deleting something. That usually means you have read access but not write access.
Before changing permissions, identify where the folder is hosted. If it is on another Mac, make the main changes on that Mac. If it is on a NAS or Windows computer, use that device’s administrator settings.
Reconnect Using the Correct Account
macOS may remember an incorrect login or connect as a guest. Reconnecting can resolve permission errors without changing any permissions.
- In Finder, click the eject icon next to the shared folder in the sidebar, or drag the mounted share to the Trash. The Trash icon changes to an eject symbol for mounted network volumes.
- Wait a few seconds.
- In Finder, select Go > Connect to Server.
- Enter the server address. For example:
text
smb://Mac-name/Shared-folder
- Click Connect.
- When prompted, select Registered User.
- Enter the username and password for an account that has permission to use the folder.
- If available, clear Remember this password in my keychain when testing a different account. This prevents macOS from automatically reusing saved credentials.
- Click Connect.
If you are unsure how to locate the correct server address or mount the folder, see How to Connect to a Shared Folder or NAS on a Mac.
Check the account name carefully
The username required by the server may not be the same as your Apple Account email address. On another Mac, it is generally a local user account on the Mac hosting the folder. On a NAS or Windows computer, it is an account created on that device or managed by an organization.
If macOS keeps reconnecting automatically with the wrong credentials, open Keychain Access, search for the server name, and remove only the saved network password entry after confirming that you know the correct credentials. The next connection should prompt you again.
Check File Sharing on the Mac Hosting the Folder
If another Mac hosts the shared folder, an administrator on that Mac must verify its sharing settings.
Warning: Changing sharing permissions affects other people who use the folder. Do not remove existing users or downgrade their access unless you understand the effect.
- On the Mac hosting the folder, choose Apple menu > System Settings.
- Click General in the sidebar.
- Click Sharing.
- Turn on File Sharing if it is off.
- Click the Info button next to File Sharing.
- Under Shared Folders, select the problem folder.
- Review the Users list.
- Click the + button to add the affected user if necessary.
- Select that user and choose a privilege:
– Read & Write: Open, create, edit, rename, and delete items, subject to file-specific restrictions.
– Read Only: Open and copy items, but not change the shared folder.
– Write Only (Drop Box): Add items without viewing the folder’s contents.
– No Access: Prevent access. - Choose Read & Write if the user needs to modify files.
- Close System Settings and test the connection again from the other Mac.
If the folder is inside another restricted folder, the user may also need permission to access the folders above it. Sharing the final folder does not always overcome restrictions on its parent folders.
Check Permissions in Finder
The shared-folder entry in File Sharing controls network access, but the folder’s underlying permissions can still block a user.
Warning: Do not change permissions on system folders, application folders, or unfamiliar folders. Incorrect changes can affect macOS or other users.
On the Mac hosting the folder:
- In Finder, Control-click the shared folder.
- Select Get Info.
- Expand Sharing & Permissions.
- Click the lock icon if it appears, then authenticate as an administrator.
- Confirm that the affected user or group appears in the list.
- Set the privilege to Read & Write if appropriate.
- If the correct account is missing, click the + button, add the user, and choose the needed privilege.
- If you changed permissions for the folder, click the Action pop-up menu—the button with three dots or a gear icon—and choose Apply to enclosed items if that option is available.
- Confirm the change when prompted.
- Close the Get Info window and reconnect to the share.
“Apply to enclosed items” copies the folder’s permission settings to files and folders inside it. Use it carefully. It can overwrite deliberately different permissions on individual files.
Check for a locked file
A single locked file may produce a permission error even when the folder itself is writable.
- Control-click the affected file.
- Choose Get Info.
- Make sure Locked is not selected.
- Check Sharing & Permissions.
- If appropriate, change your account’s privilege to Read & Write.
If the problem affects only one file, avoid changing permissions for the entire shared folder.
Confirm You Are Testing the Correct Folder
It is easy to change the permissions of a similarly named local folder instead of the actual network share.
In Finder, select the shared folder and choose File > Get Info. Check its location and connection details. A network share usually appears under Locations in the Finder sidebar and may display a server name in the Get Info window.
Also test a simple action:
- Open the shared folder.
- Create a temporary folder by pressing Shift-Command-N.
- Rename it.
- Move a small test file into it.
- Delete the temporary items.
Warning: Use only test files that are safe to remove. Do not delete or move real work files during testing.
If you can create and rename a test folder but cannot modify a particular file, the problem is likely specific to that file or its ownership.
Check Whether the Share Is Read-Only
A shared folder may be intentionally read-only. This is common for archive folders, backup destinations, and shared folders managed by an organization.
Look for these conditions:
- Your privilege is set to Read Only.
- The storage device is mounted read-only.
- The NAS has a read-only share setting.
- A Windows or server administrator has granted read access without write access.
- The disk is full or has entered a protective read-only state.
- The folder is being shared from a backup or snapshot that cannot be changed.
If the share is on a NAS or Windows computer, change the permissions in that device’s administration interface. macOS cannot override permissions enforced by the remote server.
Repair Ownership and Permissions with Terminal
Terminal can help when Finder does not correctly apply permissions or when ownership is assigned to the wrong account. This method is most appropriate for a folder you own or administer on the Mac hosting the share.
Warning: These commands change access to files. A mistake in the path can modify the wrong folder. Back up important data first, and do not use these commands on system directories or another person’s private files.
Inspect the current permissions
Open Terminal from Applications > Utilities, then run:
ls -ld "/path/to/Shared Folder"
Replace /path/to/Shared Folder with the actual folder path. This displays the folder’s owner, group, and permission mode. It does not change anything.
You can drag the folder from Finder into the Terminal window to insert its exact path.
Change ownership
To assign the folder to your account, use:
sudo chown -R "$USER":staff "/path/to/Shared Folder"
Enter your administrator password when prompted. The -R option applies the change to the folder and everything inside it.
This command changes the owner to the account running the command and sets the group to staff. Use it only when that ownership arrangement is appropriate. On a shared Mac, changing ownership for all contents may prevent another user from managing files as before.
Grant the owner read and write access
chmod -R u+rwX "/path/to/Shared Folder"
This grants the owner read and write access. The capital X adds execute permission to directories, which is necessary to open and navigate them, without indiscriminately making every regular file executable.
These commands do not change permissions on the remote server if the folder is mounted from a NAS, Windows computer, or another Mac. Run repairs on the device that actually stores the files.
Reversal
There is no universal automatic undo for ownership or permission commands. To reverse the changes, run commands using the original owner, group, and permission settings. Record the output of ls -ld and any relevant ls -l commands before making changes so you can restore the previous values.
For important shared data, use Finder’s permission settings or consult the server administrator rather than guessing at a reversal command.
Troubleshooting Permission Errors
The folder opens, but you cannot save files
You probably have Read Only access, or the underlying folder permissions do not grant write access. Check both File Sharing and Sharing & Permissions on the host Mac.
You can create files but cannot edit existing ones
Existing files may have different owners or may be locked. Check the individual file in Get Info. If many files are affected, review the ownership and permissions of the folder contents.
The username and password are rejected
Confirm that:
- You selected Registered User, not Guest.
- You are using an account on the computer or server hosting the share.
- The account is enabled and has not been disabled by an administrator.
- The server name and share name are correct.
- Old credentials are not being supplied from Keychain Access.
The shared folder disappeared
The host Mac may be asleep, disconnected, or no longer sharing the folder. Check the host’s network connection and File Sharing settings. Then reconnect through Go > Connect to Server.
For general file transfers between Macs, How to Share Files Between Two Macs explains other built-in approaches.
Permission errors continue after changing settings
Disconnect and reconnect the share so macOS establishes a new session. Restarting both Macs can also clear a stale connection, but save work first. If the share is managed by a business, school, or organization, an administrator may have imposed server-side permissions that you cannot change.
The problem involves screen access instead of files
File-sharing permissions do not control screen control. If you are trying to control another Mac rather than open files, review the separate Screen Sharing settings. How to Share and Control Another Mac Screen covers that type of connection.
Frequently Asked Questions
Can I fix a shared-folder permission error from the Mac receiving it?
Sometimes. Reconnecting with the correct account can fix authentication problems. However, the Mac hosting the folder usually controls the actual sharing and file permissions.
Why can I read a folder but not write to it?
Your account likely has Read Only access, or the folder’s underlying permissions allow reading but not writing. Check both levels of permissions on the host device.
Does restarting the Mac fix permission errors?
A restart can clear a stale network connection, but it does not normally change permissions. Save your work before restarting.
Should I enable “Ignore ownership on this volume”?
That setting applies to some locally connected external volumes and does not generally override permissions enforced by a network server. Do not rely on it to fix a shared-folder error.
Can Terminal permanently fix the problem?
Terminal can repair ownership and permissions on a folder stored locally, but it cannot override a NAS, Windows server, or another Mac’s server-side rules. Use it only when you understand the folder path and the intended ownership.
Final Thoughts
Start by reconnecting with the correct account, then verify File Sharing and Sharing & Permissions on the Mac or server hosting the folder.