LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 01-29-2006, 09:36 AM   #1
dmu
LQ Newbie
 
Registered: Feb 2005
Location: Allentown, PA
Distribution: Redhat Linux
Posts: 11

Rep: Reputation: 0
Angry How to edit the HOSTS file?


Hi,
I am very new to Linux and have a question:

I just installed Redhat Linux and need to edit the hosts file. When I try to bring it up, it loads as a "read only" file. Is there a special way to edit this file?

Thanks,
Dan
 
Old 01-29-2006, 09:42 AM   #2
desertViking
Member
 
Registered: Aug 2005
Location: Arizona
Distribution: Slackware 13, Arch Linux
Posts: 85

Rep: Reputation: 15
I think this file is owned by "root", and you either need to edit as root (su, password at prompt), or login as root.
 
Old 01-29-2006, 09:47 AM   #3
vls
Member
 
Registered: Jan 2005
Location: The grassy knoll
Distribution: Slackware,Debian
Posts: 192

Rep: Reputation: 31
You have to be root to edit /etc/hosts.
 
Old 01-29-2006, 09:51 AM   #4
dmu
LQ Newbie
 
Registered: Feb 2005
Location: Allentown, PA
Distribution: Redhat Linux
Posts: 11

Original Poster
Rep: Reputation: 0
Thank you!

Thanks for your help! :-)

Dan
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
edit /etc/hosts ninapratt Linux - Newbie 15 09-19-2005 01:49 PM
Is there an easier way to edit /etc/hosts? n3rds3x Linux - General 4 05-05-2005 05:42 AM
Cannot edit hosts file k3nn0n Fedora 3 05-26-2004 11:00 AM
does the /etc/hosts file work same as the M$ hosts file? Lleb_KCir Linux - Software 6 04-03-2004 04:33 PM
error on start up---edit /etc/hosts emacin777 Linux - Networking 1 09-03-2003 12:10 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 01:26 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration