home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / unix / question / 11067 < prev    next >
Encoding:
Text File  |  1992-09-14  |  1.6 KB  |  34 lines

  1. Newsgroups: comp.unix.questions
  2. 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
  3. From: twpierce@unix.amherst.edu (Tim Pierce)
  4. Subject: Re: user command to recover deleted file ?
  5. Message-ID: <BuLEvr.LGI@unix.amherst.edu>
  6. Organization: Amherst College, Amherst MA
  7. References: <3533@babcock.cerc.wvu.wvnet.edu> <1992Sep14.014334.6072@engr.latech.edu> <1992Sep14.211851.6952@news.acns.nwu.edu>
  8. Date: Tue, 15 Sep 1992 00:04:38 GMT
  9. Lines: 23
  10.  
  11. In article <1992Sep14.211851.6952@news.acns.nwu.edu> navarra@casbah.acns.nwu.edu (John Navarra) writes:
  12.  
  13. >    Finally, without arguing the merits of various file preserving
  14. >methods (where have you been Kamens!? ;-) one very simple thing to do
  15. >it alias the rm command to mv all files to a 'wastebasket' or 'tmp'
  16. >directory and then later clean that directory out manually or with
  17. >a cron job.
  18.  
  19. As it was pointed out to me when I brought this up, globally aliasing
  20. rm to something clever in order to "protect" the user is an extremely
  21. bad idea.  It sets them up to expect rm to act a certain way, and if
  22. they are dropped into a shell without aliasing (e.g. the Bourne
  23. shell), or into another Unix system which is not administered in the
  24. same way, all of your pampering is for nought when they "rm
  25. final-draft-thesis".
  26.  
  27. Aliasing another command, such as "del", to this safe delete, is much
  28. more advisable.
  29.  
  30. -- 
  31. ____ Tim Pierce                / "I don't know how much support NAMBLA
  32. \  / twpierce@unix.amherst.edu /  has in the gay community."
  33.  \/ (BITnet: TWPIERCE@AMHERST) /   -- Clayton Cramer, August 1992
  34.