Linux console – prevent accidental deletion of files

linuxrm

Yesterday I deleted /etc by mistake.

I remembered I found a software to prevent this kind of things but I can't find it anymore. I don't remember the name and actually Google is not helping.

It had a configuration file with a list of files/directories of critical files and the program was checking against that list everytime a user was issuing the rm command.

Does anybody know it?

Best Answer

the /etc directory should only be writeable by root. If its not, then there's something wrong with your setup.

And on a non-MAC Unix / POSIX / Linux system root is god. Most people who use such systems do so because they like to be in control of their systems - but "with great power comes great responsibility".

Don't use root access unless your sure you know what you're doing.