Samba Excel Saves go into the recycle bin
by Dencloge from LinuxQuestions.org on (#4X1HX)
Hello,
I have set up a Samba recycle bin on an Ubuntu server that serves Samba share to a group of Windows users.
Problems arise for users saving Excel files. Each save also saves a zero length file with exactly the same name as the original file into the recycle bin. No deletions are performed.
This is a problem for us in that the recycle bin is used to delete files on a second server synchronised to the fist. Thus files in the recycle bin are getting deleted when they shouldn't be. I've put in a test for the zero length to cludge the problem but I'd rather fix the root cause.
Can anyone suggest why Excel saves are placing a zero length file in the recycle bin and how I can prevent it. The behavior is also spuriously occurring for Word documents but I haven't solidly identified a user with a reproducible instance yet.
Relevant Samba config below
Code:[homes]
comment = Home Directories
browseable = yes
read only = no
create mask = 0775
directory mask = 0775
valid users = %S
writable = yes
vfs objects = recycle
recycle:repository = .RecycleBin
recycle:keeptree = yes
recycle:exclude = *.bak *.tmp,*.temp,*.o,*.obj,~$*,*.~??,~*.*,*.TMP,*.TEMP,lock.*,.~lock.*,LOCK.*,*.lock,*.~lock,*.LNK,*.lnk,*.ldb
recycle:minsize = 1
vfs objects = full_audit
#full_audit:prefix = %u|%I|%S
full_audit:prefix = %u|%U|%I|%m|%S|%T|%D
full_audit:success = mkdir rename unlink rmdir open close read pread write realpath
full_audit:failure = none
full_audit:facility = LOCAL5


I have set up a Samba recycle bin on an Ubuntu server that serves Samba share to a group of Windows users.
Problems arise for users saving Excel files. Each save also saves a zero length file with exactly the same name as the original file into the recycle bin. No deletions are performed.
This is a problem for us in that the recycle bin is used to delete files on a second server synchronised to the fist. Thus files in the recycle bin are getting deleted when they shouldn't be. I've put in a test for the zero length to cludge the problem but I'd rather fix the root cause.
Can anyone suggest why Excel saves are placing a zero length file in the recycle bin and how I can prevent it. The behavior is also spuriously occurring for Word documents but I haven't solidly identified a user with a reproducible instance yet.
Relevant Samba config below
Code:[homes]
comment = Home Directories
browseable = yes
read only = no
create mask = 0775
directory mask = 0775
valid users = %S
writable = yes
vfs objects = recycle
recycle:repository = .RecycleBin
recycle:keeptree = yes
recycle:exclude = *.bak *.tmp,*.temp,*.o,*.obj,~$*,*.~??,~*.*,*.TMP,*.TEMP,lock.*,.~lock.*,LOCK.*,*.lock,*.~lock,*.LNK,*.lnk,*.ldb
recycle:minsize = 1
vfs objects = full_audit
#full_audit:prefix = %u|%I|%S
full_audit:prefix = %u|%U|%I|%m|%S|%T|%D
full_audit:success = mkdir rename unlink rmdir open close read pread write realpath
full_audit:failure = none
full_audit:facility = LOCAL5