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.
•
• Expand the Apple menu and select “System Preferences…”
•
• Select “Security & Privacy.”
•
• Select “Privacy” tab, scroll down and click “Full Disk Access.” Select the lock icon.
•
• Log in with your admin credentials.
•
• Scroll down the menu and select “Terminal” checkbox.
•
• Select “Quit & Reopen.”
•
• Press the command and Q keys to quit System Preferences and go back to the Terminal.
•
• Type ls
and press return key to list contents of directory and there won’t be an error this time around.
•