Environment and settings:
1. Smb config.conf on the file server:
Code: Select all
[global]
workgroup = FAETON
netbios name = faetonfs
server string = %h server (Samba, Ubuntu)
dns proxy = yes
log file = /var/log/samba/log.%m
max log size = 1000
map to guest = bad user
usershare allow guests = yes
[documents]
comment = documents on faetonfs
path = /home/sambafolders/documents
guest ok = yes
browsable = yes
writable = yes
read only = no
create mask = 0777
directory mask = 0777
Code: Select all
//192.168.88.5/documents /home/documents\040on\040faetonfs cifs guest,rw,nofail,x-gvfs-show,iocharset=utf8,file_mode=0777,dir_mode=0777,uid=<userxxx>,gid=<groupxxx>,vers=2.0
Code: Select all
drwxrwxrwx 2 <userxxx> <groupxxx> 0 мар 3 23:13 documents on faetonfs/
I read about the algorithm of resaving in the office:
In the destination folder specified in the Save as dialog box, Excel creates a temporary file with a random name (for example, Cedd4100@@@ [,] without a file name extension). The entire workbook is written to this temporary file. If you save changes to an existing file, Excel deletes the original file. Excel changes the name of the temporary file to the name specified in the Save as dialog box (for example, Book1.xlsx).
It has been suggested that somehow the office process does not have permissions to delete the file. But it was not confirmed: I wrote a macros to delete the file, run - the file was deleted.