Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I'm using Mac OX X 10.7.4. I changed my /private/etc/hosts file, but when I restarted my computer, my change is gone, like it was reset by the system.

Has anybody else encounter this problem? How did you resolve it?

share|improve this question
add comment

migrated from stackoverflow.com Jul 16 '12 at 12:05

This question came from our site for professional and enthusiast programmers.

2 Answers

Are you using Cisco AnyConnect VPN Client? It seems to overwrite /private/etc/hosts with /private/etc/hosts.ac.

See

share|improve this answer
add comment

Are you using sudo? you need root privileges to modify system files. Try

sudo nano /etc/hosts

sudo nano /private/etc/hosts

If you are using AnyConnect then check this /etc/hosts getting reset in Lion

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.