Home › Knowledgebase › KB-394

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.

Quick Tip: Need immediate assistance? 💻 Open a Ticket

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.

Important: Before making any changes to file or folder permissions, please ensure you have a current backup of your data using Time Machine or another backup solution. Modifying permissions incorrectly can result in data loss or prevent applications from functioning correctly. Additionally, be aware that System Integrity Protection (SIP) prevents modifications to protected system files and folders. You cannot change permissions for core macOS system directories, even with an administrator account.

Quick Fix Steps

Before diving into deep system settings, try these rapid solutions to rule out temporary glitches:

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.

  1. Right-click (or Control + click) the folder or file that is causing the error.
  2. Select Get Info from the contextual menu.
  3. Click the padlock icon at the bottom right of the window and enter your administrator password to unlock the settings.
  4. Look at the Sharing & Permissions section.
  5. Find your username in the list. If you are not listed, click the plus (+) button and add your account.
  6. Change the Privilege column next to your name to Read & Write.
Pro Tip: If you are trying to fix a folder and all the files inside it, click the cogwheel icon (or the three-dot menu) at the bottom of the Get Info window and select Apply to enclosed items.

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.

  1. Click the Apple Menu and select System Settings.
  2. Navigate to Privacy & Security in the left-hand sidebar.
  3. Scroll down and click on Full Disk Access.
  4. Locate the application you are using to access the files (e.g., a third-party file manager or backup tool).
  5. Toggle the switch to On. You may be prompted to enter your system password.
  6. 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.

  1. Open Finder, go to Applications, then Utilities, and open Disk Utility.
  2. Select your startup disk (usually named Macintosh HD) from the sidebar.
  3. Click the First Aid button in the toolbar.
  4. Click Run to begin the verification and repair process.
  5. 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.

  1. Click the Apple Menu and select System Settings.
  2. Navigate to Users & Groups in the left-hand sidebar.
  3. Click Add User… or the plus (+) button.
  4. Set the New Account type to Administrator.
  5. Enter a full name, account name, and password, then click Create User.
  6. Log out of your current account and log in with the new administrator account.
  7. 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.

Terminal Warning: Incorrect Terminal commands can lead to system instability or data loss. Always ensure you have a backup before proceeding. Do not use 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).

  1. Right-click the external drive icon on your desktop and select Get Info.
  2. At the very bottom of the window, check the box that says Ignore ownership on this volume.
  3. This tells macOS to treat every file on that drive as if it belongs to the current user.
Note: The Ignore ownership on this volume option is only available for non-APFS formatted drives, such as HFS+ or Mac OS Extended. It is not available for APFS-formatted external drives, which are standard on modern Macs.

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.

Still Having Issues?

Need more help? If the issue persists after trying these steps, please open a support ticket and our team will assist you.

💻 Open a Ticket