Why I can´t save a Word document while editing it on a mounted folder?
So I'm running Microsoft Word in linux (Wine) and editing some word documents saved in dropbox. Strangely, it seems Word is opening the document as read only and when I hit save it gives the message:
"Word can´t finish saving due to a permission error"
Libreoffice can save it just fine, but it messes with formatting.
Run the command 'rclone version' and share the full output of the command.
rclone v1.60.1-DEV
os/version: debian kali-rolling (64 bit)
os/kernel: 6.10.11-amd64 (x86_64)
os/type: linux
os/arch: amd64
go/version: go1.23.2
go/linking: dynamic
go/tags: none
Which cloud storage system are you using? (eg Google Drive)
Dropbox
The command you were trying to run (eg rclone copy /tmp remote:tmp)
no, no. my document is named test.docx. when word opens a document, it creates a temp file, hence the ~$test.docx. so this is normal, libreoffice also does that.
but when a document is being saved, first another temp file is created (like ~WRD1667.tmp), then test.docx is deleted and the temp file renamed to the original. but since it's identified as read only for some reason, it can´t autosave.
I've captured the log for doing the same thing with libreoffice writer.
the differences is that libreoffice temp file doesn´t have a tilde, so the rename runs fine:
2025/01/06 13:31:11 DEBUG : /: Rename: oldName="lu1009665id34.tmp", newName="test.docx", newDir=/
2025/01/06 13:31:11 INFO : lu1009665id34.tmp: vfs cache: renamed in cache to "test.docx"
but word temp file has a tilde. IDK why word, when saving, is renaming the document to a temp file first.
2025/01/05 11:58:11 DEBUG : /: Rename: oldName="test.docx", newName="~WRL0001.tmp", newDir=/
2025/01/05 11:58:11 DEBUG : /: Attr:
2025/01/05 11:58:11 DEBUG : /: >Attr: attr=valid=1s ino=0 size=0 mode=drwxrwxr-x, err=
2025/01/05 11:58:11 ERROR : test.docx: Couldn't move: move failed: to/disallowed_name/
maybe because it is opening the document inside the vfs as readonly.
2025/01/05 11:58:11 DEBUG : test.docx: Open: flags=OpenReadOnly+OpenNonblock