3 ms·
"Because they are root and those are just files." Just because you are root doesn't mean you should be able to do whatever you like to the filesystem at any ti
by olefoo 17y ago
"Because they are root and those are just files."
Just because you are root doesn't mean you should be able to do whatever you like to the filesystem at any time. Most modern unix variants (including linux) support file attributes such as immutability, see the man page for chattr(1) if you want more. In BSD land there is additionally the concept of Secure Levels which limit the ability of root to change file attributes under different circumstances; generally you have to reboot into single user mode to overwrite files or directories marked as immutable or delete ones marked as append_only.
- fhars 17y agoAccording to the FreeBSD chflags(1) manpage: The chflags command first appeared in 4.4BSD. Which puts it about seven years after this story.