Tuesday, November 18, 2008

Samba Recycle Bin

Easy to setup, and helps provide an added layer of protection. I added the bold text to my smb.conf, restarted samba...and voila!

[share]
path = /samba/share
read only = No
valid users = @DomainUsers
create mask = 0770
directory mask = 0770

vfs objects = recycle
recycle:repository = .recyclebin/%U
recycle:keeptree = Yes
recycle:touch = Yes
recycle:touch_mtime = Yes
recycle:versions = Yes
recycle:maxsize = 0
recycle:exclude = *.tmp

No comments: