Computing.Net > Forums > Mac > host file editing

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

Reply to Message Icon

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)

Would you have any other ideas?

Thanks a Lot!




Sponsored Link
Ads by Google

Response Number 1
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
Reply:

Thanks a lot! Pico worked perfectly.


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Mac Forum Home


Sponsored links

Ads by Google


Results for: host file editing

HOSTS file in Win XP and Linux...so www.computing.net/answers/mac/hosts-file-in-win-xp-and-linuxso/10985.html

mac connecting to windows server www.computing.net/answers/mac/mac-connecting-to-windows-server/11172.html

/etc/hosts on a Mac ? www.computing.net/answers/mac/etchosts-on-a-mac-/2107.html