12

This is a lead-up to my main question here (Fully uninstall Norton from mac)

I get "Operation not permitted" when running "sudo find" in terminal on macOS.

I have given terminal Full Disk Access in System Preferences, Security & Privacy.

Here is the command I run:

% sudo find / -name "norton" >> norton.txt

It returns some files and directories into the .txt file, but I get two screens full of Operation not permitted errors, mostly in /System/Volumes/Data/private/var/folders/

Why is this happening? How do I fix it?

2
  • Is System Integrity Protection enabled?
    – JMY1000
    Nov 13, 2020 at 1:07
  • @JMY1000 - thank you! That was the problem. I was able to remove Norton and install a different av provider.
    – Tim
    Nov 14, 2020 at 2:24

1 Answer 1

4

macOS restricts Terminal access to certain parts of the disk by default. You can disable this one of two ways:

  1. Go to System Preferences > Security & Privacy and give Full Disk Access to Terminal.
  2. Turn of System Integrity Protection (not generally recommended.) This disables full protection for system-related items on the disk, as well as some other protections including restricted access via Terminal.
2
  • How did you do the second point? I see no such option in the system preferences ... Jun 3, 2022 at 10:34
  • On the other hand, my mac does have it, but after giving full access and restarting the terminal, I still get the same "Operation not permitted".
    – toraritte
    Jan 26, 2023 at 2:26

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .