Rowland Penny
2022-Jul-06 15:04 UTC
[Samba] Problem file server with microsoft office temp files
On Wed, 2022-07-06 at 11:37 -0300, Gabriel Franca via samba wrote:> Good morning people, > > I have a problem on my file server with samba in version 4.15.5 with > office > files (excel, word etc..). > When someone saves a file in the domain, an 8-character file with the > extension .tmp appears. The server already has hundreds of TMP files > that > are not deleted by themselves.Known problem, a known microsoft problem, word etc creates a temporary file xxxxxxxx.tmp and then when the file is saved, it is supposed to be saved with the contents of the '*.tmp' file with a new name and the '*.tmp' file is supposed to be deleted, very often word etc doesn't. You can hide the .tmp files with 'hide files' or you can add them to 'veto files' Rowland
Anders Östling
2022-Jul-06 16:41 UTC
[Samba] Problem file server with microsoft office temp files
I had the same issue when using vfs recycling. I solved it by using a cron script that removed them on a weekly basis (name .tmp, mtime +7). I guess that this is what recycle is supposed to do, so no samba bug IMO. Anders H?mta Outlook for Android<https://aka.ms/AAb9ysg> ________________________________ From: samba <samba-bounces at lists.samba.org> on behalf of Rowland Penny via samba <samba at lists.samba.org> Sent: Wednesday, July 6, 2022 5:04:23 PM To: samba at lists.samba.org <samba at lists.samba.org> Cc: Rowland Penny <rpenny at samba.org> Subject: Re: [Samba] Problem file server with microsoft office temp files On Wed, 2022-07-06 at 11:37 -0300, Gabriel Franca via samba wrote:> Good morning people, > > I have a problem on my file server with samba in version 4.15.5 with > office > files (excel, word etc..). > When someone saves a file in the domain, an 8-character file with the > extension .tmp appears. The server already has hundreds of TMP files > that > are not deleted by themselves.Known problem, a known microsoft problem, word etc creates a temporary file xxxxxxxx.tmp and then when the file is saved, it is supposed to be saved with the contents of the '*.tmp' file with a new name and the '*.tmp' file is supposed to be deleted, very often word etc doesn't. You can hide the .tmp files with 'hide files' or you can add them to 'veto files' Rowland -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
Gabriel Franca
2022-Jul-06 17:30 UTC
[Samba] Problem file server with microsoft office temp files
Hi Rowland, I believe the problem is in the time to delete the file. Because when I try to delete the file through windows I can't. I give the delete the file some and if I give a f5 it goes back to the same place. So I think that office is actually deleting it, but samba doesn't let the file be deleted. I made a cat here. I used the hide file and put in the cron the find /data -name *.tmp -delete until I managed to find a definitive solution. I'm testing a windows server 2012 without antivirus. In my smb.conf, did you find something that shouldn't be there? Yours sincerely, Gabriel O. Franca Em qua., 6 de jul. de 2022 ?s 12:05, Rowland Penny via samba < samba at lists.samba.org> escreveu:> On Wed, 2022-07-06 at 11:37 -0300, Gabriel Franca via samba wrote: > > Good morning people, > > > > I have a problem on my file server with samba in version 4.15.5 with > > office > > files (excel, word etc..). > > When someone saves a file in the domain, an 8-character file with the > > extension .tmp appears. The server already has hundreds of TMP files > > that > > are not deleted by themselves. > > Known problem, a known microsoft problem, word etc creates a temporary > file xxxxxxxx.tmp and then when the file is saved, it is supposed to be > saved with the contents of the '*.tmp' file with a new name and the > '*.tmp' file is supposed to be deleted, very often word etc doesn't. > > You can hide the .tmp files with 'hide files' or you can add them to > 'veto files' > > Rowland > > > > -- > To unsubscribe from this list go to the following URL and read the > instructions: https://lists.samba.org/mailman/options/samba >