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
More linux commands
-
lsattr -R /etc/ 2>/dev/null | grep -v '^\-\-\-\-'List non-default extended attrs in /etc/
-
getfacl /srv/sharedShow POSIX ACL entries including owner, group, and extra users
-
setfacl -m u:alice:rwx /srv/sharedGrant alice full access without changing group ownership
-
find / -perm /6000 -type f -ls 2>/dev/nullLocate setuid/setgid executables (security audit)
-
pgrep -la nginxList PIDs and full command lines matching a name