macOS terminal prompts "Operation not permitted" solution

After the terminal runs the command, it prompts "Operation not permitted" and reports an error. This problem generally only occurs frequently in the macOS Ventura system, or you need to pay attention to this small problem when you upgrade to Ventura from other versions.

 

Solution

Open "System Preferences — > Privacy and Security — > Full Disk Access Permissions --> Find "Terminal", you can see that the switch behind the terminal is not turned on, let's turn it on, and then you will be prompted to enter your Mac power-on password, enter the password Confirm to open. At this time, you may be prompted to exit the terminal. Remember to click Exit at this time, otherwise the settings will be invalid!

If you don't find the terminal option in "System Preferences —> Privacy and Security —> Full Disk Access —> ", then open the "Finder" —> "Applications" —> "Utilities" and find " Terminal” APP, directly drag it into the “Full Disk Access” window to set the open option.

Guess you like

Origin blog.csdn.net/viviwa/article/details/128485297