Skip to content
86% off$349 $48.86code BF2026

Docs

Sledbot docs30 pages

Warp "Operation not permitted": fix with Full Disk Access

Fix "Operation not permitted" on ls in Warp or any Mac terminal: grant Full Disk Access, restart the app, and check for stale entries.

Updated 7 min read

On this page

After an update, the shell in your terminal starts failing on plain commands:

text
ls: .: Operation not permitted

A user on Warp's issue tracker reported this: after an update the shell lost permission to read files, even ls failed, and turning on Full Disk Access for the app fixed it. The same setting applies to any terminal app on macOS 14 Sonoma, 15 Sequoia and 26 Tahoe.

Why it happens

"Operation not permitted" (EPERM) is not the same as "Permission denied" (EACCES). Permission denied means the normal Unix file permissions say no. Operation not permitted usually means macOS privacy protection blocked the app, even though the file permissions look fine.

Apple says apps that need access to the full storage device must be added explicitly in System Settings. Everything you type in a terminal runs under that terminal app's access, so ls, cat and git all inherit its limits.

The likely causes, most common first:

  1. The grant was lost or never applied to the updated app. After an update the app may be treated as new, or its entry may no longer match. We don't know exactly why this happens. The Warp report only shows that the symptom appeared after an update and that granting access fixed it.
  2. The app was never granted access and the prompt didn't appear or was dismissed. Folder prompts (Desktop, Documents, Downloads) only show when an app first touches them.
  3. You are typing in a different terminal app than the one you enabled. Each app has its own entry.
  4. The app was not restarted after you turned the switch on.
  5. A stale entry is in the list, pointing at an old copy of the app.

sudo does not help here. Root bypasses Unix file permissions, but not these privacy rules, which attach to the app.

Step-by-step fixes

Fix 1: Grant Full Disk Access and restart the app

You need an administrator account. macOS asks for your password or Touch ID.

  1. Quit the terminal app completely with ⌘Q (Command-Q). Closing the window leaves it running.
  2. Choose Apple menu > System Settings, then click Privacy & Security in the sidebar. Apple's steps for this are in its article on changing app access.
  3. Click Full Disk Access. If the labels differ on your macOS version, search System Settings for "Full Disk Access".
  4. Find Warp (or your terminal app) and turn its switch on. Authenticate when asked.
  5. If the app is not listed, click the + button, authenticate, choose the app in Applications and click Open. Apple describes the same step: click the Add button, select the app, then click Open.
  6. If macOS offers to quit and reopen the app, accept. Otherwise open it yourself.
  7. In a new tab or window, run:
bash
ls ~/Documents

This only lists a folder and changes nothing. If it prints your files, you are done.

To undo, return to the same pane and turn the switch off, or select the app and click −.

Fix 2: Remove the entry and add it again

Use this when the switch is already on but ls still fails. A stale entry is the usual reason.

  1. Quit the terminal app with ⌘Q.
  2. In Privacy & Security > Full Disk Access, select the app and click −. Enter your password if asked.
  3. Click +, choose the app from the Applications folder, and click Open.
  4. Confirm the switch is on, then reopen the app and run ls ~/Documents again.

If your Mac offers to limit the app to specific folders instead, you can choose that (see the note below). For a terminal that has to reach many locations, Full Disk Access is often what makes the error go away.

Fix 3: Reset the app's entry from Terminal

This is a last resort for a stuck entry. It clears the stored decision for one app, so macOS will ask again or you re-enable it by hand. First find the app's bundle ID:

bash
osascript -e 'id of app "Warp"'

Then reset Full Disk Access for that bundle ID (replace the placeholder with the ID the first command printed):

bash
tccutil reset SystemPolicyAllFiles your.bundle.id

Do not run tccutil reset without a bundle ID: that resets the service for every app. To undo, turn the switch back on as in Fix 1.

Fix 4: Narrow the grant with Files & Folders

If you would rather not give a terminal Full Disk Access, open Privacy & Security > Files & Folders. Apple says this pane lets you turn file and folder access on or off for each app in the list, covering Desktop, Documents and Downloads. It will not cover everything Full Disk Access does, so if ls fails on a folder outside those, you still need Fix 1.

Which symptom points to which fix

SymptomLikely causeFix
ls fails right after an app updateGrant lost or not matched to the new appFix 1, then Fix 2
Switch is on, still failsApp not restarted, or stale entry⌘Q and reopen, then Fix 2
App missing from the listNever requested accessAdd with + (Fix 1, step 5)
Works in one terminal, fails in anotherEach app has its own entryEnable the app you type in
Fails only in ~/Documents or ~/DesktopFolder-level access missingFix 4 or Fix 1
Still fails after everythingEntry corrupted, or a different restrictionFix 3, then contact support

Checklist before you try again

  • You quit the terminal with ⌘Q, not just closed the window.
  • The switch for the exact app you are typing in is on.
  • You reopened the app after changing the setting.
  • You tested in a new tab or window.
  • Only one copy of the app is in Applications.

If nothing works

Contact the terminal's vendor. For Warp, use its support channel or its GitHub issue tracker, and include your macOS version, the Warp version, the exact error text, and what you already tried. Mention that the problem started after an update and whether Full Disk Access was already on.

text
Subject: "Operation not permitted" in the shell after an update (macOS)

After updating Warp, every command in the shell that reads files fails
with "Operation not permitted", including plain `ls`.

macOS version: (for example 26.x)
Warp version: (from the Warp menu > About)
Full Disk Access for Warp: on / off / not listed
Already tried: quit with Cmd-Q and reopen; removed and re-added Warp
under Privacy & Security > Full Disk Access; tccutil reset for the
bundle ID.
Example: running `ls ~/Documents` prints the error above.

The sign-up error is separate

If Warp shows "This account violates our Terms of Service. Please log in with another account." when you sign up, macOS permissions are not involved. We don't know what triggers it or how to clear it. Contact Warp's support, quote the message word for word, and say which login method you used.

Where Sledbot fits

Sledbot does not request Full Disk Access. Its optional permissions are listed in Permissions Sledbot asks for. So there is no Sledbot setting to change for this error, and the steps above are the fix for whichever terminal app you use. We do not claim that terminals inside Sledbot are exempt from macOS folder protections. If one shows "Operation not permitted" and you can't explain it, see Troubleshooting Sledbot or contact support.

Common questions

Do I give Full Disk Access to the shell or the terminal app?

To the terminal app. Programs you run inside it, including zsh, ls and git, use that app's access.

Is it safe to leave Full Disk Access on for a terminal?

It is broad, so it is a trade-off. Anything you run in that terminal can read, change and delete most of your files. Keep it for terminals you use for real work, or use Fix 4 if the narrower grant is enough.

Why did it break after an update when it worked before?

We don't know the exact mechanism for Warp. The report shows the symptom appeared after an update, and that re-enabling access fixed it. Removing and re-adding the entry (Fix 2) is the usual remedy when a switch looks on but doesn't work.

Will running the command with sudo fix it?

No. The block comes from macOS privacy protection on the app, which root does not bypass.

Every app.
One purchase.