Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 17 Apr 2016 19:25:57 +0200
From:      Eduardo Morras <emorrasg@yahoo.es>
To:        freebsd-questions@freebsd.org
Subject:   Re: rm -rf -Mitigating the dangers
Message-ID:  <20160417192557.eaa6429c5c00d136b974bbf6@yahoo.es>
In-Reply-To: <CAAdA2WNqWACnjiUSHhYWL1nEj=YGPPURqJHsAcjaXYacziXsfg@mail.gmail.com>
References:  <CAAdA2WNqWACnjiUSHhYWL1nEj=YGPPURqJHsAcjaXYacziXsfg@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, 17 Apr 2016 20:10:11 +0300
Odhiambo Washington <odhiambo@gmail.com> wrote:

> I am wondering if I should place a feature request on this or just do
> it my way:)
> 
> With great power comes great responsibility and as such I think there
> should be a wrapper around rm to warn sysadmins that what they are
> about to do with -rf is dangerous, yes?
> 
> Read input from sysadmin 3 times, looking strictly for their
> confirmation before effecting the `rm -rf`.
> 
> Could it be that what I am smoking/drinking is the issue here or I
> have your support? LOL

Fork rm code, rename one to areyoureallysure that honors -rf and classic rm without -rf.

But remember, no risk, no fun.

---   ---
Eduardo Morras <emorrasg@yahoo.es>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20160417192557.eaa6429c5c00d136b974bbf6>