[NTLUG:Discuss] Netware 'salvage' feature wanted in SAMBA.

kbrannen@gte.net kbrannen at gte.net
Sun Jun 9 13:42:16 CDT 2002


Rev. wRy wrote:
> On Fri, 2002-06-07 at 14:52, Richard Geoffrion wrote:
> 
> 
>>While I'm sure that we all agree that one should know what they're doing
>>before deleting files, users do have accidents (well ok..we all do....well
>>*I* do anyway.)
>>
>>So...what are the options?
> 
> 
> CVS?  shell script for a 'safe-rm' that moves the files to a location to
> be deleted later instead of removing them at that time?

Yes, that (or "alias rm='rm -i'") will help with "Stupid User Tricks" (tm :-) 
but not with "Stupid Application Tricks" as they will use the libc function 
unlink() (or some equivalent) instead of /bin/rm.

Some [unix] systems also have "/etc/unlink" (or so it was on the HP system I 
used to use) that would avoid any problems "rm" might have (normally used for 
system programs as I recall).  My SuSE 8.0 system does not have this, but 
others might.

My point being that the user aspect of your goal is doable; the application 
part is probably not possible (unless you plan have a custom libc. :-)

HTH,
Kevin





More information about the Discuss mailing list