Path: utzoo!attcan!utgpu!news-server.csri.toronto.edu!mailrus!uunet!sdrc!cinnet!icc!cbp From: cbp@icc.com (Chris Preston) Newsgroups: comp.unix.misc Subject: Re: Protection from "rm *" Message-ID: <1990Sep30.065005.11001@icc.com> Date: 30 Sep 90 06:50:05 GMT References: <853@agcsun.UUCP> Distribution: usa Organization: Intercomputer Communications Corp., Cincinnati, OH Lines: 31 In article <853@agcsun.UUCP> jackm@agcsun.UUCP () writes: >I happened on an interesting way to protect against those accidental "rm *"'s > >To expand on this a bit, you could > > alias mkdir '/bin/mkdir \!^; touch \!^/#; chmod 0 \!^/#' > >So - anyone seen this before? See any drawbacks? > >-- >"How am I typing? Call 1-303-279-1300" Jack C. Morrison >Ampex Video Systems 581 Conference Place, Golden CO 80401 How about touch -- -NO-WAY! giving the result: rm: illegal option -- N rm: illegal option -- O rm: illegal option -- - rm: illegal option -- W rm: illegal option -- A rm: illegal option -- Y rm: illegal option -- ! usage: rm [-fir] file ... cbp --- Exclaimer: How about those Reds! Miracles abound. And they program too!