Ravi Sir's Cards › AWS
chattr locks
This revision card explains chattr locks. It starts from the need that even root cannot change it. It describes +i immutable, +a append only. The how-to section notes lsattr shows the flags. An example on the card is protect DNS config.
Read card text
What this card says
Why do we need it?
Even root cannot change it.
What is it?
+i immutable, +a append only.
How to do it
lsattr shows the flags.
Example
Protect DNS config.
sudo chattr +i /etc/resolv.conf