Set immutable file attribute

Prevent any user (incl. root) from modifying the file

chattr +i /etc/resolv.conf && lsattr /etc/resolv.conf

tool
linux133 commands
tags
linuxfilesystemsecurity

More linux commands

all 133 linux commands