Resolve Operation Not Permitted Error in Terminal on Mac - VicPhanDevOps/mac GitHub Wiki

• The following solution for if you receive an error saying “Operation Not Permitted” in the terminal on Mac.
image

• Expand the Apple menu and select “System Preferences…”
image

• Select “Security & Privacy.”
image

• Select “Privacy” tab, scroll down and click “Full Disk Access.” Select the lock icon.
image

• Log in with your admin credentials.
image

• Scroll down the menu and select “Terminal” checkbox.
image

• Select “Quit & Reopen.”
image

• Press the command and Q keys to quit System Preferences and go back to the Terminal.
image

• Type ls and press return key to list contents of directory and there won’t be an error this time around.
image

⚠️ **GitHub.com Fallback** ⚠️