More Linux tips every geek should know
Mar 06, 2009, 18:02 (0 Talkback[s])
"#3: Make working as root safer
"Working with root is either great fun or extremely dangerous,
depending on how much you like the feeling of supreme executive
power.
"But if you're one of the people who fears the mighty power of
the superuser to delete files with impunity, what you need is
chattr: it lets you set a file as being immutable, which means that
not even root can delete it. For example: running chattr +i
myfile.txt as root will make that file virtually indestructable no
matter what user you are. If you want to remove the shield of
steel, use -i rather than +i."
Complete Story
Related Stories:
- The command-line phrasebook(Mar 05, 2009)
- Mommy, I found it! -- 15 Practical Linux Find Command Examples(Mar 04, 2009)
- Linux GUI diff utilities a visual tour(Mar 02, 2009)
- Linux tips every geek should know(Mar 02, 2009)
- Bash version 4.0 released(Feb 24, 2009)
- Smart tips and tricks to get the best from KDE 4(Feb 23, 2009)
- Vim autocomplete feature(Feb 23, 2009)
- Linux comes to Windows users' rescue(Feb 20, 2009)
- Command-Line-Fu(Feb 18, 2009)