Protection from "rm *"

Peter Funk pf at artcom0.north.de
Sun Oct 14 07:56:15 AEST 1990


In <1100 at bilver.UUCP> bill at bilver.UUCP (Bill Vermillion) writes:
bv> In article <1990Oct11.184004.9353 at nntp-server.caltech.edu> 
	gwoho at nntp-server.caltech.edu (g liu) writes:
bv> >
bv> >a good way to protect people from accidental "rm *" is to type "rm /bin/rm"

bv> Well you can't do that on SysV type systems.  You will get an error message
bv> with "Text file busy".  It won't removed itself, because it is in use,
bv> trying to remove itself ;-)

On SysV there is another good way yielding similar results for 
the same kind of lusers:
	mv /bin/rm '/bin/rm -i'

;-) Sorry .... I couldn't resist...  ;-) ;-)
---
Peter Funk \\ ArtCom GmbH, Schwachhauser Heerstr. 78, D-2800 Bremen 1
Work at home: Oldenburger Str.86, D-2875 Ganderkesee 1 /+49 4222 6018 (8am-6pm)
>> PLEASE Don't send me BIG mails (oversea) ! I've to pay for it : $0.3/kB
   Don't use the bang path of this news article for mails (They will bounce).
   Only the address 'pf at artcom0.north.de' will work. Thank You ! <<



More information about the Comp.unix.misc mailing list