adam_xu at adagene.com.cn
2018-May-24 03:02 UTC
[Samba] vfs objects recycle can not exclude profile directory
hello, everyone. I'm have a file server using samba 4.7.1 and it is a domain member. I'm using the vfs objects "recycle". everything works ok except that I have add the "profiles" directory as an exclude_dir in vfs recycle, but when I delete a file in \\profiles\myusername.V2\Desktop\filename.txt, the file goes to \\recycle. It seems that the exclue rule do not take effect in the "profiles" , but works ok in other exclude_dir ! here is my code in smb.conf ......... vfs objects = acl_xattr full_audit recycle ....... recycle:repository = /srv/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:exclude_dir = recycle,tmp,temp,TMP,TEMP,profiles,%U.V2 [users] path = /srv/samba/users/ read only = no [profiles] path = /srv/samba/profiles/ read only = no recycle:exclude = *.* recycle:exclude_dir = * [recycle] path = /srv/samba/recycle/ read only = no recycle:exclude = *.* recycle:exclude_dir = * ....... every version of samba have the same issue. anything wrong in my code ? yours Adam
adam_xu at adagene.com.cn
2018-May-31 05:17 UTC
[Samba] vfs objects recycle can not exclude profile directory
Hello everyone. I have tested this in my testing env. there's no this bug in my test env with the same smb.conf. the system version and the samba version are the same in testing and production env. the difference is that the samba in production env is update from version 4.4.4 to 4.6.2 to 4.7.1, and the samba in testing env is directly using version 4.7.1. any suggestion ? thanks. yours Adam From: adam_xu--- via samba Date: 2018-05-24 11:02 To: samba Subject: [Samba] vfs objects recycle can not exclude profile directory hello, everyone. I'm have a file server using samba 4.7.1 and it is a domain member. I'm using the vfs objects "recycle". everything works ok except that I have add the "profiles" directory as an exclude_dir in vfs recycle, but when I delete a file in \\profiles\myusername.V2\Desktop\filename.txt, the file goes to \\recycle. It seems that the exclue rule do not take effect in the "profiles" , but works ok in other exclude_dir ! here is my code in smb.conf ......... vfs objects = acl_xattr full_audit recycle ....... recycle:repository = /srv/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:exclude_dir = recycle,tmp,temp,TMP,TEMP,profiles,%U.V2 [users] path = /srv/samba/users/ read only = no [profiles] path = /srv/samba/profiles/ read only = no recycle:exclude = *.* recycle:exclude_dir = * [recycle] path = /srv/samba/recycle/ read only = no recycle:exclude = *.* recycle:exclude_dir = * ....... every version of samba have the same issue. anything wrong in my code ? yours Adam -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
Rowland Penny
2018-May-31 07:59 UTC
[Samba] vfs objects recycle can not exclude profile directory
On Thu, 31 May 2018 13:17:06 +0800 adam_xu--- via samba <samba at lists.samba.org> wrote:> Hello everyone. I have tested this in my testing env. there's no this > bug in my test env with the same smb.conf. > > the system version and the samba version are the same in testing and > production env. > > the difference is that the samba in production env is update from > version 4.4.4 to 4.6.2 to 4.7.1, and the samba in testing env is > directly using version 4.7.1. > > any suggestion ? thanks. >Have you tried it like this: [global] ......... vfs objects = acl_xattr full_audit recycle ....... [users] path = /srv/samba/users/ read only = no recycle:repository = /srv/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:exclude_dir = recycle,tmp,temp,TMP,TEMP,profiles,%U.V2 [profiles] path = /srv/samba/profiles/ read only = no [recycle] path = /srv/samba/recycle/ read only = no From my understanding, recycle would only work on the 'users' share, it would be ignored on 'profiles' and 'recycle' Rowland