View Single Post

   
  #4 (permalink)  
Old 01-17-2008, 07:04 AM
Tim Wunder
 
Posts: n/a
Default Re: Preventing Permanate Loss of Files

On 6/26/2003 6:30 PM, someone claiming to be Brad S wrote:

> So it is not possible to "force" samba into interperating the delete
> command by workstations as a command to move that file into a
> temporary directory?


Look in to VFS for samba. Found in the samba source directory
examples/VFS. Specifically, the recycle module in examples/VFS/recycle.
You'll probly need to download the samba source as I don't know if RHL
8.0's samba RPMs come with the VFS stuff installed.

You could try, as root
# locate recycle.so
to see if you find the file recycle.so

If you don't locate it, download the samba source.

Once you compile and install the VFS stuff, just add something like:
vfs object = /usr/local/samba/recycle.so
vfs options = /etc/samba/recycle.conf
to the share in your smb.conf file, and create the requisite
recycle.conf file. There are examples that come with the samba source.

Oooh... I just looked on my home RHL 8.0 system and recycle.so exists in
/usr/lib/samba/vfs and a sample recycle.conf file exists in
/usr/share/doc/samba-2.2.7/recycle.conf

So this should be fairly painless for you.


HTH,
Tim

Reply With Quote