Advanced

Make your files immutable in Linux which even root can't delete

Posted by VISITOR on · 1 comment
All about Linux (http://linuxhelp.blogspot.com); By Ravi
Mail this story
Print this story

Root is considered all powerful in Linux. But here is a cool article which tells you how to forbid even root user from deleting/modifying certain files.

Here is a cool tip on how you can make files on your system immutable. By immutable, I mean even root can't delete the files if he choose to. Linux ships with a tool called chattr which can be used for the purpose. 'chattr' is similar to the 'attrib' DOS equivalent tool but much more powerful and flexible.

Full Story

  Nav
» Read more about: Story Type: Tutorial; Groups: Fedora, Fedora Legacy, Gentoo, LPI, Mandriva, Red Hat, SCO, Slackware, Turbolinux, Ubuntu

» Get new stories by e-mail: nightly or as they are published

« Return to the newswire homepage

  Related stories
» More like this

Comments (1)

'cause anyone with root privileges can change it back. It won't foil an attacker if they succeed in escalating to root privileges. About the only value I see in setting the immutable bit is to help prevent mistakes by legitimate system users.

Post a comment

A free account is needed to post. Write your comment here first: your text is kept in this browser while you sign up or log in, and is waiting for you when you come back.

Your message:
|||||
10
Markdown: **bold**, *italic*, [text](https://link), - lists, > quotes, $x^2$ for math. Formatting help

Sign up and post (it is free)  or  Log in and post