Linux Today: Linux News On Internet Time.

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: