[Herefordshire] Hosts file corrupted.

Matt Stone stone.matthew at gmail.com
Tue Feb 15 20:18:24 GMT 2005


Your right on how the file should be.

I'd suggest creating a new hosts file as root and using it to overwrite the
exisiting one. If the file does get corrupted again it's just a case of
copying over backup one.

Cheers
Matt

----- Original Message ----- 
From: "Noel McG." <herlinux at hotmail.com>
To: "Herefordshire Linux Users Group." <herefordshire at mailman.lug.org.uk>
Sent: Tuesday, February 15, 2005 7:15 PM
Subject: Re: [Herefordshire] Hosts file corrupted.
>
> I was in as su root but it would not let me in to /etc/hosts,  =
'Permission
> denied'.  Nor clould  I get anywhere with vi/etc/hosts to try to edit it =
> 'No such file or directory'
>
> At present it shows this when I look in home/etc/ and open the file
'hosts'
> in Kwrite
>
> 127.0.0.1            localhost.localdomain home 192.168.0.1 192 localhost
> 192.168.0.2        linuxbox
>
> It believe that it needs to be put back to this
>
>  127.0.0.1            localhost.localdomain localhost
>  192.168.0.2        linuxbox
>  192.168.0.1        home




More information about the Herefordshire mailing list