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

From: Michael Reifenberger (mike_at_Reifenberger.com)
Date: 10/02/04

  • Next message: Giorgos Keramidas: "Re: Protection from the dreaded "rm -fr /""
    Date: Sat, 2 Oct 2004 10:34:09 +0200 (CEST)
    To: Giorgos Keramidas <keramida@freebsd.org>
    
    

    On Sat, 2 Oct 2004, Giorgos Keramidas wrote:

    > Date: Sat, 2 Oct 2004 11:19:28 +0300
    > From: Giorgos Keramidas <keramida@freebsd.org>
    > To: freebsd-hackers@freebsd.org
    > Subject: Protection from the dreaded "rm -fr /"
    >
    > 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:
    >

    This does only help for the obvious case of '/' but not for the
    './' and '../' or '../../' ... accidents.

    Furthermore does it prevent root from doing `rm -rf /` which is a pretty
    legal operation for root since he knows what he is doing.

    This is UNIX, not Windows.

    Bye/2

    ---
    Michael Reifenberger, Business Development Manager SAP-Basis, Plaut Consulting
    Comp: Michael.Reifenberger@plaut.de | Priv: Michael@Reifenberger.com
           http://www.plaut.de           |       http://www.Reifenberger.com
    _______________________________________________
    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: Giorgos Keramidas: "Re: Protection from the dreaded "rm -fr /""

    Relevant Pages


  • Quantcast