Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 27 Sep 2007 20:27:56 +0900
From:      Daichi GOTO <daichi@freebsd.org>
To:        cpghost <cpghost@cordula.ws>
Cc:        FreeBSD Current <freebsd-current@freebsd.org>, Masanori OZAWA <ozawa@ongs.co.jp>
Subject:   Re: The safety expansion for FreeBSD rm(1)
Message-ID:  <46FB93BC.2000508@freebsd.org>
In-Reply-To: <20070925194008.3c2d7113@epia-2.farid-hajji.net>
References:  <46F905FD.9060208@freebsd.org> <20070925194008.3c2d7113@epia-2.farid-hajji.net>

next in thread | previous in thread | raw e-mail | index | archive | help
cpghost wrote:
> On Tue, 25 Sep 2007 21:58:37 +0900
> Daichi GOTO <daichi@freebsd.org> wrote:
> 
>> Today is not unionfs. Introduction for safety expansion of rm(1).
>> I know that some unix folks have a experience that you remove some
>> files or directories accidentally. Yes, me too. LoL
>>
>> Have you any dreams that rm(1) autonomously judges target should
>> be remove or not?  To complexify system base command is objectionable
>> behavior but adding some little and simple mechanism to prevent a
>> issue is acceptable I suppose.
>>
>> We have created safety expansion for rm(1). If you have any interests,
>> please try follow patch.
>>
>>    http://people.freebsd.org/~daichi/safety-rm/
>>
>> Thanks :)
> 
> Interesting idea, but isn't that a violation of POLA? Imagine an

What's POLA??

> unsuspecting sysadmin trying to rm something, and forgetting
> or not knowing about ~/.rm?
> 
> Isn't it better to protect important system directories with
> something like:
>   # chflags sunlink /path/to/dir
> and unprotect them with
>   # chflags nosunlink /path/to/dir
> to avoid mistakes?

Of course that's one of the ways, I suppose :)

chflags is useful but root limitation feature is not useful
for common users I suppose. With our expansion, common users
can check files or directories on self-responsibility.

And unusual commands like chflags I just suppose are no much
point in this case. What is important is that adding mistake
protecting functions into common commands like rm(1) itself.

Of course I respect your opinions and all comments are
welcome :)  I have no intention to add our expansion to src
tree. It just is a little patch for folks who have a interest
of it. Thanks

> Thanks,
> -cpghost.

-- 
   Daichi GOTO, http://people.freebsd.org/~daichi



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