Projects / safe-rm

safe-rm

safe-rm is intended to prevent the accidental deletion of important files by replacing /bin/rm with a wrapper that 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. Protected paths can be set both at the site and user levels.

Tags
Licenses
Operating Systems
Implementation
Translations

RSS Last announcement

Contributing your list of protected paths to safe-rm 22 Apr 2010

This is an open invitation to all safe-rm users to send in their personal lists of protected paths so that some of these can hopefully be included ...

RSS Recent releases

  •  09 Jun 2013 13:49

Release Notes: This minor release adds IFS to the list of environment variables to untaint.

  •  11 Jan 2013 22:18

Release Notes: This version adds /lib32 and /lib64 to the default list of protected paths.

  •  15 Oct 2009 11:38

Release Notes: This new version removes an unnecessary dependency on the English Perl module. This makes safe-rm more robust during upgrades of the Perl core packages.

  •  23 Sep 2009 08:24

Release Notes: A small untainting problem was fixed for people who have CDPATH defined in their environment.

  •  22 May 2009 18:13

Release Notes: This release fixes a bug that caused symbolic links to protected files to be undeletable. Therefore, if you create a symlink to /usr/lib, you will now be able to delete it without having to use the real rm explicitly. Another minor enhancement included in this release is the change in the message displayed by safe-rm when a protected file is skipped. The new message should now make it explicit who is to blame when a file isn't being deleted.

Screenshot

Project Spotlight

MathGL

A library for making high-quality scientific graphics.

Screenshot

Project Spotlight

libdwarf-dwarfdump

A library for DWARF debug information reading/writing.