Can't overwrite files, but can save new files

I have Libreoffice 2024.2.1.2 and Ubuntu 22.04. I am trying to save files to a shared drive located on another computer on my local network. I can save new files there with no issues with SAVE AS, but if I try to SAVE (overwrite) an existing file it says “Error saving the document . Error creating object. Could not create backup copy.”

The shared drive is on a Windows computer, and I am connecting to it with this configuration in /etc/fstab:

//10.0.0.5/share /mnt/share cifs credentials=/home/path/to/ file,file_mode=0755,dir_mode=0755,uid=horaceb, 0 0

Is there anything I can do to fix this?

Do you have AVG or Avast on the Windows computer? Their anti ransomware works by making the individual files read only unless an application is on the allowed list. I don’t think an application on another computer can ever be on the allowed list.
Maybe you could unprotect the shared folder?

The Windows computer has Malwarebytes, but nothing on that computer has changed recently as far as I know. I checked some of the “.~lock..odt#” files on the Windows computer, and they are not marked as read-only.

As a test, I opened GIMP, created, and saved a PNG into the same folder with the .odt files I’m trying to overwrite. I then made a small change in GIMP and clicked Save and it was able to save over the original PNG with no issues. It seems to be a Libreoffice-specific issue.

If I run the mount command for this share this is what it shows:

//10.0.0.5/shared on /mnt/shared type cifs (rw,relatime,vers=2.1,cache=strict,username=bob,uid=1000,noforceuid,gid=0,noforcegid,addr=10.0.0.5,file_mode=0755,dir_mode=0755,soft,nounix,serverino,mapposix,rsize=1048576,wsize=1048576,bsize=1048576,echo_interval=60,actimeo=1,closetimeo=1)

It seems that the “rw” there should allow read/write on all files. I don’t know why .odt would be different.

As a second test, I tried saving and then overwriting a text file in the same folder I’m trying to save these .odt files and it was able to overwrite it with no errors. I used Kate (KDE text editor).

Here’s what it shows for the backup folder:

$ stat .config/libreoffice/4/user/backup/
  File: .config/libreoffice/4/user/backup/
  Size: 4096            Blocks: 8          IO Block: 4096   directory
Device: fc00h/64512d    Inode: 7472336     Links: 2
Access: (0775/drwxrwxr-x)  Uid: ( 1000/ bob)   Gid: ( 1000/ bob)
Access: 2024-03-15 18:50:13.961959606 -0400
Modify: 2024-03-15 18:45:40.712906027 -0400
Change: 2024-03-15 18:45:40.712906027 -0400
 Birth: 2023-05-17 18:11:40.892469739 -0400

I noticed that there are a bunch of files in the backup folder with permission of “-rw-------”, and these all have a large file size. The files I’ve opened since this issue started a few days ago all have permissions of “-rwxr-xr-x” and are 0 bytes.

I went to Tools > Options > Load/Save > General and disabled the “Always Create Backup Copy”, and I can now overwrite. Now the question is, what is preventing the backups from working?