I am trying to edit my hosts file on Mac OS X Lion 10.7.4. I've tried all the Terminal trickery I can, but I always get "Operation not permitted" when attempting to modify the file. I've tried:
sudo chmod 777 /etc/hosts sudo chmod nouchg /etc/hosts sudo cp ~/hosts /etc/hosts
All fail with "operation not permitted" messages. Here's the output of
ls -lO@e /etc/hosts:
-rw-r--r-- 1 root wheel uappnd,nodump,opaque 2073 Sep 22 2010 /etc/hosts
Unfortunately, I have no idea how to read most of that. Any tips?