home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.unix.questions
- Path: sparky!uunet!paladin.american.edu!darwin.sura.net!spool.mu.edu!sol.ctr.columbia.edu!eff!news.byu.edu!news.mtholyoke.edu!nic.umass.edu!news.amherst.edu!twpierce
- From: twpierce@unix.amherst.edu (Tim Pierce)
- Subject: Re: user command to recover deleted file ?
- Message-ID: <BuLEvr.LGI@unix.amherst.edu>
- Organization: Amherst College, Amherst MA
- References: <3533@babcock.cerc.wvu.wvnet.edu> <1992Sep14.014334.6072@engr.latech.edu> <1992Sep14.211851.6952@news.acns.nwu.edu>
- Date: Tue, 15 Sep 1992 00:04:38 GMT
- Lines: 23
-
- In article <1992Sep14.211851.6952@news.acns.nwu.edu> navarra@casbah.acns.nwu.edu (John Navarra) writes:
-
- > Finally, without arguing the merits of various file preserving
- >methods (where have you been Kamens!? ;-) one very simple thing to do
- >it alias the rm command to mv all files to a 'wastebasket' or 'tmp'
- >directory and then later clean that directory out manually or with
- >a cron job.
-
- As it was pointed out to me when I brought this up, globally aliasing
- rm to something clever in order to "protect" the user is an extremely
- bad idea. It sets them up to expect rm to act a certain way, and if
- they are dropped into a shell without aliasing (e.g. the Bourne
- shell), or into another Unix system which is not administered in the
- same way, all of your pampering is for nought when they "rm
- final-draft-thesis".
-
- Aliasing another command, such as "del", to this safe delete, is much
- more advisable.
-
- --
- ____ Tim Pierce / "I don't know how much support NAMBLA
- \ / twpierce@unix.amherst.edu / has in the gay community."
- \/ (BITnet: TWPIERCE@AMHERST) / -- Clayton Cramer, August 1992
-