[Samba] Enable Recycling

Nicolas me at electronico.nc
Thu Jul 21 05:28:07 UTC 2016


Hello,

I'm not sure that this works for the [global] section
It works for me in a [share] section (using samba 4.4.5):

[share]
         path = /media/data/share
         read only = No
         vfs objects = acl_xattr full_audit recycle
         recycle:directory_mode = 0700
         recycle:versions = Yes
         recycle:inherit_nt_acl = Yes
         recycle:keeptree = Yes
         recycle:touch = Yes
         recycle:repository = .recycle/%U

Nicolas

On 21/07/2016 08:18, Curtis Vaughan wrote:
> So I've added the following information to my smb.conf in the general 
> section based off various information on the internet, but primarily 
> from here:
> http://timtrott.co.uk/enabling-recycle-bin-functionality-samba/
>
> Nonetheless when I delete files from any shares they are not sent to 
> Recycling. What am I missing?
>
>
> # Enable Recycling
> vfs objects = full_audit recycle
> recycle:repository = /samba/Recycle/%U
> recycle:touch = Yes
> recycle:keeptree = Yes
> recycle:versions = Yes
> recycle:noversions = *.tmp,*.temp,*.o,*.obj,*.TMP,*.TEMP
> recycle:exclude = *.tmp,*.temp,*.o,*.obj,*.TMP,*.TEMP
> recycle:excludedir = /recycle,/tmp,/temp,/TMP,/TEMP
> full_audit:prefix = %u|%I
> full_audit:success = open mkdir rmdir write unlink rename
> full_audit:failure = mkdir rmdir write unlink rename
>
>




More information about the samba mailing list