Hosts file- Can't save
Trying to edit the Host file but can't seem to do so.
I'm logged into the Computer as 'root'
In terminal I login to:
sudo nano etc/hosts
Since I'm root I am not asked for a pwd.
When I finish editing the hosts file and try to save, I:
press CTRL X.
I am asked to "Save Modified Buffer". I select Y for yes.
Next screen asks:
File Name to Write: etc/hosts
Under neith the above statement I have the options to:
^Get ^T M-M Mac Format M-M Mac Format M-P Prepend
^Cancel M-D Dos format M-D DOS Format M-A Append M-B Backup File
I hit enter to simply save the file and I get back:
Error writing etc/hosts: No such file or Directory
I also tried using the ^O command and it didn't work.
Looking at the obvious, don't the file and directory both exist since I am in the directory and I'm trying to edit the file?
Does the Mac not want to over write the hosts file?
Is this another snow leopard quark?
I managed to do this on my G5 PowerPC without any problems.
I called Mac support, since the Mackbook is only two days old and they said:
"uh, we're not allowed to show you how to edit the Hosts file because it can cause catastrophic damage to your OS and we don't want to be held liable for that."
Anyone, anyone? Bueller?
Thanks all.
MacBook Pro, Mac OS X (10.6), 15"s of circuit board