Discussion:
[Samba] Enable Recycling
Curtis Vaughan
2016-07-20 21:18:56 UTC
Permalink
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
Nicolas
2016-07-21 05:28:07 UTC
Permalink
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
Post by Curtis Vaughan
So I've added the following information to my smb.conf in the general
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
Timo Dachs-Wegmann
2016-07-21 06:16:11 UTC
Permalink
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-***@lists.samba.org] Im Auftrag von Nicolas
Gesendet: Donnerstag, 21. Juli 2016 07:28
An: ***@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
Post by Curtis Vaughan
So I've added the following information to my smb.conf in the general
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
--
To unsubscribe from this list go to the following URL and read the
instructions: https://lists.samba.org/mailman/options/samba
Continue reading on narkive:
Loading...