How to stop Network Manager (I asssume) overwriting /etc/hosts in 10.10?
Chris G
cl at isbd.net
Tue Mar 22 20:34:06 UTC 2011
On Tue, Mar 22, 2011 at 03:36:18PM -0400, Ray Leventhal wrote:
> <huge snip>
> >>Is it "chris"? Does changing it to "chris.yourdomain" resolve your problem?
> >>
> >It's the fact that Network Manager insists on adding "127.0.0.1
> >localhost.localdomain" that causes me a problem. Both apache2 and
> >leafnode complain when finding that the domain name is localdomain.
> >
> >I have solved the problem for the moment simply be uninstalling Network
> >Manager and installing wicd instead, that leaves everything as I want it
> >but gives me a GUI interface to look at things still.
> >
>
> Perhaps issuing the command:
>
> sudo chattr +i /etc/hosts
>
> after making your specific edits will keep it from being re/over-written.
>
> Not tested, just a thought.
>
I had tried setting /etc/hosts read-only (chmod 0444) and that didn't
work, I'm not sure if the above would work better.
--
Chris Green
More information about the ubuntu-users
mailing list