How to fix macOS 'Permission Denied' errors when accessing folders or files
Summary
This guide helps you troubleshoot and resolve: How to fix macOS 'Permission Denied' errors when accessing folders or files. Follow the steps below to fix the issue.
Common Causes
Encountering a 'Permission Denied' error on macOS typically occurs when the current user account does not have the necessary read or write privileges for a specific file or folder. This often happens after migrating data from an old Mac, restoring from a backup, or when accessing shared network drives. This guide will help you analyse and resolve these permission conflicts to regain access to your data.
Quick Fix Steps
Before diving into deep system settings, try these rapid solutions to rule out temporary glitches:
- Restart your Mac: A simple reboot can resolve temporary file locks held by background processes.
- Check the Lock checkbox: Right-click the file, select Get Info, and ensure the Locked checkbox is not ticked.
- Verify Disk Space: Ensure your drive isn't completely full, as this can sometimes trigger misleading permission errors.
Detailed Instructions
Method 1: Using the Get Info Panel
The most common way to fix permissions for a specific folder or file is through the Finder's information window.
- Right-click (or
Control+ click) the folder or file that is causing the error. - Select Get Info from the contextual menu.
- Click the padlock icon at the bottom right of the window and enter your administrator password to unlock the settings.
- Look at the Sharing & Permissions section.
- Find your username in the list. If you are not listed, click the plus (+) button and add your account.
- Change the Privilege column next to your name to Read & Write.
Method 2: Granting Full Disk Access
Modern macOS versions (Ventura, Sonoma, and Sequoia) use a security feature called Transparency, Consent, and Control (TCC) which may block specific applications from accessing certain folders, even if you are the administrator.
- Click the Apple Menu and select System Settings.
- Navigate to Privacy & Security in the left-hand sidebar.
- Scroll down and click on Full Disk Access.
- Locate the application you are using to access the files (e.g., a third-party file manager or backup tool).
- Toggle the switch to On. You may be prompted to enter your system password.
- Restart the application for the changes to take effect.
Method 3: Repairing Disk Permissions and Testing User Accounts
If you are experiencing permission errors across multiple folders in your user directory, you can repair disk permissions or test whether the issue is specific to your user account by creating a new administrator account.
Repair Disk with First Aid
Disk Utility's First Aid can check and repair directory errors that may be causing permission conflicts.
- Open Finder, go to Applications, then Utilities, and open Disk Utility.
- Select your startup disk (usually named Macintosh HD) from the sidebar.
- Click the First Aid button in the toolbar.
- Click Run to begin the verification and repair process.
- Once complete, restart your Mac and check if the permission errors persist.
Create a New Administrator User
Creating a new admin user helps determine if the permission issue is isolated to your specific user profile.
- Click the Apple Menu and select System Settings.
- Navigate to Users & Groups in the left-hand sidebar.
- Click Add User… or the plus (+) button.
- Set the New Account type to Administrator.
- Enter a full name, account name, and password, then click Create User.
- Log out of your current account and log in with the new administrator account.
- Attempt to access the folder or file that was previously denied. If it works, the issue is specific to your original user account.
Using Terminal Commands
Advanced users can use Terminal commands such as chmod to change permissions or chown to change ownership. These commands should only be used if you understand the specific permissions required, as incorrect usage can lock you out of your own data or damage system stability.
sudo commands on system folders, as System Integrity Protection (SIP) will block these changes and may cause system errors.
Troubleshooting Common Scenarios
External Hard Drives and USBs
If the 'Permission Denied' error occurs on an external drive, it may be due to the drive's formatting (e.g., NTFS drives are read-only on macOS by default).
- Right-click the external drive icon on your desktop and select Get Info.
- At the very bottom of the window, check the box that says Ignore ownership on this volume.
- This tells macOS to treat every file on that drive as if it belongs to the current user.
Network Share Permissions
If you are accessing a folder on a server or another Mac, the permission issue is likely residing on the host machine rather than your local Mac.
- Ensure the server share settings allow your specific user account Read/Write access.
- Verify that you are logged into the network share with the correct credentials.
- If the issue persists, Open a Ticket so we can analyse the server-side permissions for you.
Still Having Issues?
💻 Open a Ticket