Skip to content

Instantly share code, notes, and snippets.

@ali-master
Created October 21, 2024 21:00
Show Gist options
  • Save ali-master/62efbae39e389cc6734af5e7a33f6ccf to your computer and use it in GitHub Desktop.
Save ali-master/62efbae39e389cc6734af5e7a33f6ccf to your computer and use it in GitHub Desktop.
Macos Operation not permitted issue solution

I find a solution for this, in finder, if the hosts file has a lock on it, use this command to unlock it:

sudo chflags nouchg,noschg /etc/hosts

then it will be editable by root, so you can use sudo nano /etc/hosts.

BTY, you can find hosts file in finder by this command: open /etc.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment