from http://ubuntuforums.org/showthread.php?t=155763

ok, first you need to create the /etc/samba/recycle.conf file.

Code:
sudo vi /etc/samba/recycle.conf

You must create this from scratch so don’t be frightened by the blank page. Mine looks like this:

Code:
##Recycle Bin Configuration File##
name = Recycle Bin
mode = KEEP_DIRECTORIES|VERSIONS|TOUCH
maxsize = 0
exclude = *.tmp|*.temp|*.o|*.obj|~$*|*.~??|*.log|*.trace
excludedir = /tmp|/temp|/cache
noversions = *.doc|*.ppt|*.dat|*.ini

and then edit your /etc/samba/samb.conf file…

Code:
sudo vi /etc/samba/smb.conf

add the following lines to the directory within which you’d like the recycle bin to live (i have recycle bins in [homes] and [www] on my server):

Code:
   vfs object = recycle
   config-file = /etc/samba/recycle.conf
   recycle:repository = Recycle Bin
   recycle:keeptree = Yes
   recycle:versions = Yes

then restart your samba daemons and the recycle bin should show up after a few momnents (but most likely after you delete your first file).

Code:
sudo /etc/init.d/samba restart

i worked on this all day and had trouble finding solid documentation. this was the only thread on the subject here, so hopefully this will help someone else out!

Tagged with:
 

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>