[Samba] Enable Recycling
Timo Dachs-Wegmann
t.wegmann at procitec.de
Thu Jul 21 06:16:11 UTC 2016
Hi,
Yes, I think you have to write these parameters into the share config.
[share]
path = /srv/samba/share/
guest ok = no
read only = no
create mask = 700
directory mask = 700
vfs objects = recycle
recycle:repository = .recycle
recycle:keeptree = yes
recycle:versions = yes
This works for me.
Kind regards
Timo Dachs-Wegmann
-EDV-
-----Ursprüngliche Nachricht-----
Von: samba [mailto:samba-bounces at lists.samba.org] Im Auftrag von Nicolas
Gesendet: Donnerstag, 21. Juli 2016 07:28
An: samba at lists.samba.org
Betreff: Re: [Samba] Enable Recycling
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
>
>
--
To unsubscribe from this list go to the following URL and read the
instructions: https://lists.samba.org/mailman/options/samba
More information about the samba
mailing list