A new release of safe-rm is now available from the usual place.
The main change in this release is a fix for a bug that was preventing the root directory (/) from being added to the list of protected paths. Safe-rm is now able to protect you from the infamous rm -rf /.
I highly recommend that you now add / to your /etc/safe-rm.conf.
Thanks to Mubeen Jukaku for reporting this problem!
What is safe-rm?
Safe-rm is a safety tool intended to prevent the accidental deletion of important files by replacing /bin/rm with a wrapper, which checks the given arguments against a configurable blacklist of files and directories that should never be removed.
Users who attempt to delete one of these protected files or directories will not be able to do so and will be shown a warning message instead:
$ rm -rf /usr Skipping /usr
(Protected paths can be set both at the site and user levels.)
Recovering important files you deleted by mistake can be quite hard. Protect yourself today by installing safe-rm and reduce the likelihood that you will need to contact a data recovery service!
(Linux/UNIX source code).
Subscribe to:
Post Comments (Atom)



No comments:
Post a Comment