How to Make Linux Files Undeletable Even for Root UsersAug 13, 2026securityUse chattr +i to make Linux files immutable, preventing deletion, modification, or renaming even by root users. Ideal for protecting critical system files like /etc/passwd and /etc/shadow from rootkit attacks and unauthorized changes.Read article