Unable to edit /etc/hosts with permission denied error
[15:45:02][rabbie@sandnigga:~]# sudo cat /etc/hosts
Password:
cat: /etc/hosts: Permission denied
[15:45:09][rabbie@sandnigga:~]#
Basically that's my problem right there. I cant edit / view / change the hosts file on my macbook pro but I can delete it and create a new one. If I do delete it and create a new one, that new file then has the same problem only a few minutes later.
Does anyone have any ideas ?
I have also tried to change the ownership and permissions of the file:
[15:45:09][rabbie@sandnigga:~]# ls -la /etc/hosts
-rwxrwxrwx 1 root wheel 290 18 Sep 20:38 /etc/hosts
No luck.
Thanks in advance for any help.
MacBook Pro (Retina, Mid 2012), OS X Mountain Lion (10.8.1)