Skip to content

Give Terminal full disk access on a Mac

Full disk access lets Terminal read folders that macOS otherwise hides, including Mail, Messages, and some backups. App Management lets Terminal change other apps. Neither one is the same as sudo. sudo asks for your password for a single command. The steps below are the Privacy & Security switches.

On a Mac set to another language, the row names are translated. The order is the same.

macOS Ventura, Sonoma, and Sequoia

  1. Open System Settings.
  2. Open Privacy & Security.
  3. Open Full Disk Access.
  4. Click the + at the bottom of the list. If the list is locked, unlock it with your login password first.
  5. Go to Applications → Utilities and choose Terminal. Terminal should now appear in the list with its switch on.
  6. Go back to Privacy & Security.
  7. Open App Management and add Terminal the same way.
System Settings with Privacy and Security selected and Full Disk Access listed

Terminal can then copy, read, and remove files in places that used to return “Operation not permitted”, and it can manage other apps.

macOS Monterey, Big Sur, and earlier

  1. Open System Preferences.
  2. Open Security & Privacy.
  3. Open the Privacy tab.
  4. Select Full Disk Access.
  5. Click the lock, enter your login password, then click +.
  6. Go to Applications → Utilities and choose Terminal.

Quit Terminal and open it again so the new permission applies.

All guides