Re: Protection from the dreaded "rm -fr /"

From: Edwin Groothuis (edwin_at_mavetju.org)
Date: 10/02/04

  • Next message: Michael Reifenberger: "Re: Protection from the dreaded "rm -fr /""
    Date: Sat, 2 Oct 2004 18:33:36 +1000
    To: Giorgos Keramidas <keramida@FreeBSD.org>
    
    

    On Sat, Oct 02, 2004 at 11:19:28AM +0300, Giorgos Keramidas wrote:
    > John Beck, who works for Sun, has posted an entry in his blog yesterday
    > about "rm -fr /" protection, which I liked a lot:
    > http://blogs.sun.com/roller/page/jbeck/20041001#rm_rf_protection
    >
    > His idea was remarkably simple, so I went ahead and wrote this patch for
    > rm(1) of FreeBSD:

    I'm not so much worried about 'rm -rf /', but I'm more worried about
    "rm -rf *" in my home directory. It happened once because I was too
    happy switching directories before realising what I was doing in
    the wrong directory.

    Also, refusing to do it is not the ideal way to go, I think that
    if you have two -f's specified it would do it anyway. Just my two
    cents of course.

    Edwin

    -- 
    Edwin Groothuis      |            Personal website: http://www.mavetju.org
    edwin@mavetju.org    |          Weblog: http://weblog.barnet.com.au/edwin/
    _______________________________________________
    freebsd-hackers@freebsd.org mailing list
    http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
    To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org"
    

  • Next message: Michael Reifenberger: "Re: Protection from the dreaded "rm -fr /""

    Relevant Pages


  • Quantcast