Skip to content

Instantly share code, notes, and snippets.

@copley
Created December 3, 2023 20:47

Revisions

  1. copley created this gist Dec 3, 2023.
    9 changes: 9 additions & 0 deletions Locked Host File
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,9 @@
    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.