Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.
host file editing
Name: bezpal Date: June 10, 2005 at 13:13:39 Pacific OS: mc OS X CPU/Ram: eMac
Comment:
Hello,
I need to edit hosts file on my MAC but unable to save it. Text Editor says 'Couldn't save'
I seems to have an Admin rights on the machine: if I open System Preferences-> System-> Accounts it says Admin next to my login, and If I do Edit User- there is a checkmark at 'Allow user to administer this computer'
If I open 'get info' on the file it is not locked, I am the owner, and I have 'read ad write' access .
Do I need a special editor? (I just doubleclicked on the file)
Name: TobyBonnie Date: June 11, 2005 at 20:05:20 Pacific
Reply:
The hosts file is in the hidden /etc folder so it is ruled by the superuser "root". You have two choices: Enable the root user so you can login with super powers; or use Terminal.
Editing in Terminal is really quite easy. Launch Terminal. Type sudo pico /etc/hosts and hit return. You will be asked for your password. You won't see any characters on the screen when you type the password. Just hit return when it is typed and you should find yourself in a text editor called Pico. Now use the up-down-left-right arrows to get yourself into position to type the line. You can use the tab between entries on the each line.
When you are finished typing, hit the ctrl-x keys. It will ask if you want to save changes. Type a "y" to indicate yes. Now you have a hosts file with your new entry.
0
Response Number 2
Name: bezpal Date: June 13, 2005 at 07:31:07 Pacific
Summary: Hmmm..i remember using hosts files back in the Windows for workgroups days, before there were a lot of dns servers... All i can say is i've got several sites i've visited without any names that i've e...
Summary: Unfortunatly you really havnt given any details but here is a go One server 2003 has the ability to create mac shares using apple services.. something to consider instead of samba but current versions...
Summary: Yes, there is, but you won't get much "help" from the help files on this one. Check out this explanation at Apple's Tech Info Library: http://til.info.apple.com/techinfo.nsf/artnum/n75085 You can use ...