FC3 - Stop '/etc/resolv.conf' from being changed, how?

Eric.Malenfant-xNZwKgViW5gAvxtiuMwx3w at public.gmane.org Eric.Malenfant-xNZwKgViW5gAvxtiuMwx3w at public.gmane.org
Wed Dec 1 21:40:06 UTC 2004


Another good one to try, is once you have the file setup the way you want it, set the immutible
flag on the file

chattr +i /etc/resolv.conf

Not even root would be able to delete the file until the flag was removed.

Regards,
Eric Malenfant

-----Original Message-----
From: owner-tlug-lxSQFCZeNF4 at public.gmane.org [mailto:owner-tlug-lxSQFCZeNF4 at public.gmane.org]On Behalf Of ext
psema4
Sent: Wednesday, December 01, 2004 4:32 PM
To: tlug-lxSQFCZeNF4 at public.gmane.org
Subject: Re: [TLUG]: FC3 - Stop '/etc/resolv.conf' from being changed,
how?


Not entirely certain about this one, but if I remember correctly, some
utilities (tripwire comes to mind) will protect certain system files
from being changed...  Effectively quarantining the modified system
files and replacing the modified copy with a "good copy" stored in
it's database.

Not sure if it's relevant or not, but might be something worth looking
at if you're running tripwire or something similar.

- Scott.

On Wed, 1 Dec 2004 11:05:44 -0500, Chris Gow <sniffy-bJEeYj9oJeDQT0dZR+AlfA at public.gmane.org> wrote:
> On December 1, 2004 10:57 am, Madison Kelly wrote:
> > Hi all,
> >
> >    I have now tried everything I can think of to prevent my
> > '/etc/resolv.conf' file from being re-written when I switch networks and
> > nothing seems to work. I have my own DNS server and I have no desire to
> > use other people's DNS servers. I use a laptop so I am frequently
> > connecting to DHCP-servered LANs.
> If you are using dhcp, then the dhcpcd supports a -R which is supposed to stop
> the client from overwriting the resolv.conf file. At least that's what man
> dhcpcd said. Dunno if FC3 uses that or something else.
> 
> -- chris
> 
> 
> --
> The Toronto Linux Users Group.      Meetings: http://tlug.ss.org
> TLUG requests: Linux topics, No HTML, wrap text below 80 columns
> How to UNSUBSCRIBE: http://tlug.ss.org/subscribe.shtml
>
--
The Toronto Linux Users Group.      Meetings: http://tlug.ss.org
TLUG requests: Linux topics, No HTML, wrap text below 80 columns
How to UNSUBSCRIBE: http://tlug.ss.org/subscribe.shtml
--
The Toronto Linux Users Group.      Meetings: http://tlug.ss.org
TLUG requests: Linux topics, No HTML, wrap text below 80 columns
How to UNSUBSCRIBE: http://tlug.ss.org/subscribe.shtml





More information about the Legacy mailing list