Re: Why does resolv.conf keep changing?
- Date: Wed, 25 Oct 2017 15:02:51 +0200
- From: <tomas@xxxxxxxxxx>
- Subject: Re: Why does resolv.conf keep changing?
-----BEGIN PGP SIGNED MESSAGE-----
On Wed, Oct 25, 2017 at 08:51:55AM -0400, Stefan Monnier wrote:
> > Yes. Still the open question remains: why is it being changed although
> > the "immutable" attriibute was set?
> I'm not sufficiently familiar with the "immutable" attribute to answer
> that, sorry.
A file set to "immutable" (chattr +i is the command line incantation)
can't be changed (or *removed*), even by root. Only root (more precisely:
a process with the right capabilities) can set or reset this attribute).
I use that often to answer the question "who on earth is changing this
file behind my back?": set to immutable and watch someone whining in
the logs. The result is often to learn how to configure the program
doing the thing to stop doing it, or even to understand the changes
and accept them or have my say in them.
No idea why that fails for the OP.
- -- tomás
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)
-----END PGP SIGNATURE-----