Skip to content

Instantly share code, notes, and snippets.

@copley
Created December 3, 2023 20:47
Show Gist options
  • Save copley/67cc8a8755e30e23b4ffc4ddd514cec6 to your computer and use it in GitHub Desktop.
Save copley/67cc8a8755e30e23b4ffc4ddd514cec6 to your computer and use it in GitHub Desktop.
Locked Host File
For reasons only you know, you have locked the hosts file, as well as adding an inappropriate ACL to the etc directory. I'll limit myself to fixing the hosts file. Enter the following command in the same way as before -- NO TYPING:
sudo chflags nouchg /etc/hosts
You'll be prompted for your password, which won't be displayed when you type it. Type nothing in the window except your password. Then quit Terminal.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment