-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 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. Cheers - -- tomás -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) iEYEARECAAYFAlnwi3sACgkQBcgs9XrR2kYmagCfdmyYbiT6nyCNNYuDXeJlBh9X RzoAnjWgkAMnF7APto7S/Rya6ouxhQxL =zIlB -----END PGP SIGNATURE-----