Page 1 of 5 123 ... LastLast
Results 1 to 10 of 43

Thread: safe-rm installed by default.

  1. #1
    Join Date
    Aug 2007
    Location
    From the land down under
    Beans
    1,246
    Distro
    Ubuntu Development Release

    safe-rm installed by default.

    This package provides a tool intended to prevent the accidental deletion of important files by replacing 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. Protected paths can be set both at the site and user levels. (dpkg package description)
    https://launchpad.net/safe-rm

    20KB's but provides an extra layer of protection against not only accidental deletions but social engineering as well, the error message could be a bit more clear about how important the directory is.
    // Blog

  2. #2
    Join Date
    Sep 2006
    Location
    Central Europe
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: safe-rm installed by default.

    Personally I think this kind of over-protection is counter-productive as it will lead to less caution when performing critical tasks.

    Would you let a safe-rm user do command-line stuff on your Ubuntu box w/o safe-rm?
    The Power User’s Guide to Unity
    Questions about Ubuntu? Ask them at askubuntu.com!

  3. #3
    Join Date
    Aug 2007
    Location
    From the land down under
    Beans
    1,246
    Distro
    Ubuntu Development Release

    Re: safe-rm installed by default.

    Quote Originally Posted by MacUntu View Post
    Would you let a safe-rm user do command-line stuff on your Ubuntu box w/o safe-rm?
    huh?

    I'm saying it should be installed by default, therefore my ubuntu box would have it?

    Also yes, by the same argument would you let a 'sudo' user have root access on your ubuntu box?
    // Blog

  4. #4
    Join Date
    May 2008
    Beans
    1,020

    Re: safe-rm installed by default.

    Quote Originally Posted by ikt View Post
    https://launchpad.net/safe-rm

    20KB's but provides an extra layer of protection against not only accidental deletions but social engineering as well, the error message could be a bit more clear about how important the directory is.
    alias rm='rm -i' is all you need
    OB-untu. #!crunchbang

  5. #5
    Join Date
    Sep 2006
    Location
    Central Europe
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: safe-rm installed by default.

    Quote Originally Posted by ikt View Post
    Also yes, by the same argument would you let a 'sudo' user have root access on your ubuntu box?
    That's not exactly comparable as 'sudo' isn't a wrapper for anything. With safe-rm your 'rm' command gets replaced, so you always use the little magic. There's a good chance of forgetting about it - that's not possible with something you need to add like 'sudo'.

    Quote Originally Posted by xebian View Post
    alias rm='rm -i' is all you need
    Good luck with using scripts.
    Last edited by MacUntu; May 23rd, 2011 at 03:08 PM.
    The Power User’s Guide to Unity
    Questions about Ubuntu? Ask them at askubuntu.com!

  6. #6
    Join Date
    May 2008
    Beans
    1,020

    Re: safe-rm installed by default.

    Quote Originally Posted by ikt View Post
    huh?

    I'm saying it should be installed by default, therefore my ubuntu box would have it?

    Also yes, by the same argument would you let a 'sudo' user have root access on your ubuntu box?
    Why would one (1) user thinks he/she needs it forces all others to have it when they don't have need for it?
    OB-untu. #!crunchbang

  7. #7
    Join Date
    May 2008
    Beans
    1,020

    Re: safe-rm installed by default.

    Quote Originally Posted by MacUntu View Post
    That's not exactly comparable as 'sudo' isn't a wrapper for anything. With safe-rm your 'rm' command gets replaced, so you always use the little magic. There's a good chance of forgetting about it - that's not possible with something you need to add like 'sudo'.



    Good luck with using scripts.
    What scripts? That is just an alias reimplementation of rm to always prompt. Just 1 line addition to .bashrc or .bash_aliases
    OB-untu. #!crunchbang

  8. #8
    Join Date
    Aug 2007
    Location
    From the land down under
    Beans
    1,246
    Distro
    Ubuntu Development Release

    Re: safe-rm installed by default.

    Quote Originally Posted by xebian View Post
    alias rm='rm -i' is all you need
    prompting doesn't work it annoys, a better solution would be an alias which moves all data to the trash.
    // Blog

  9. #9
    Join Date
    Oct 2005
    Location
    INDY
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: safe-rm installed by default.

    Thank you, NO, I will be responsible for my own system.
    Castles Made of Sand,
    Fall in the Sea,
    Eventually!

  10. #10
    Join Date
    Aug 2007
    Location
    From the land down under
    Beans
    1,246
    Distro
    Ubuntu Development Release

    Re: safe-rm installed by default.

    Quote Originally Posted by arpanaut View Post
    Thank you, NO, I will be responsible for my own system.
    I'm not thinking of you when I suggest this, I'm thinking of users who are unaware of what rm -rf means and does.

    Quote Originally Posted by xebian View Post
    Why would one (1) user thinks he/she needs it forces all others to have it when they don't have need for it?
    All users have a need for it, it's useful in preventing the accidental deletion of important files, in addition it can boost security. I don't see a downside.
    Last edited by ikt; May 23rd, 2011 at 03:44 PM.
    // Blog

Page 1 of 5 123 ... LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •