TransWikia.com

Operation not permitted using Find in macOS Terminal

Super User Asked on January 9, 2021

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?

One Answer

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.

Answered by JMY1000 on January 9, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP