Ask Your Question
0

LibreOffice won't open files I don't own

asked 2017-11-13 17:22:23 +0100

fokram gravatar image

updated 2017-11-16 09:40:36 +0100

Hi, I'm running LibreOffice on Linux (Debian), and recently it's started not letting me open files that I am not the owner of. This crops up when I try to open files that are on my Windows partitions, as they are always owned by root. Even though I have full access permissions, LibreOffice says "Access to ... was denied".

If I copy these files to my home folder, I can replicate these results. If I am the owner of the file it will open up, but if I change it to a different user/root it will show that error (even if I have full permissions). Changing the group has no effect.

This problem only exists with LibreOffice, e.g. I can open up a csv file that I don't own in my text editor but not in LibreOffice Calc.

I've upgraded my system fully, and have completely removed and re-installed LibreOffice and its dependencies, but it didn't fix anything.

Edit: Also tried via command line (libreoffice and socalc/sowriter) still getting the errors, also no useful debug information

edit retag flag offensive close merge delete

Comments

Just a guess, but perhaps the problem is related to the containing directory. Perhaps you could try opening the file on the command line to see if you get a more descriptive error message.

KH gravatar imageKH ( 2017-11-14 10:14:36 +0100 )edit

Nothing's coming out, I tried with -o, --view and --nolockcheck but it fails every time and doesn't put any information in the shell.

Same results if I try libreoffice vs localc or lowriter.

fokram gravatar imagefokram ( 2017-11-14 15:30:48 +0100 )edit

1 Answer

Sort by » oldest newest most voted
0

answered 2017-11-16 16:55:40 +0100

petermau gravatar image

updated 2017-11-20 11:31:16 +0100

When you open a LibO file, for example a .odt writer file, LibO writes a lock file to the folder that contains the original file. If you are using a windows folder, used by WINE, I cannot check with a straight Windows partition, you must have full access to that folder. That is to say, read and write access to the file is not enough. You must have the ability to create a new file. This is a folder property, not a simple file property. Have you given the folder create file access?

==============================

LibreOffice now writes its document #lock file to the same folder as the file you are editing. This means that the user must have FOLDER / CREATE options. It is not enough to have READ / WRITE access to the document in question. A way to check this is to open LibO on one file on one of your own folders, then create a new writer file and save the file using SAVE AS to the folder that you are currently having problems with. Does this work?

Make certain that there are no other applications running in the Wine/Windows partition that could be owning the folder and are stopping full access to the folder in question.

edit flag offensive delete link more

Comments

"If I copy these files to my home folder, I can replicate these results. If I am the owner of the file it will open up, but if I change it to a different user/root it will show that error (even if I have full permissions). Changing the group has no effect."

fokram gravatar imagefokram ( 2017-11-19 18:43:05 +0100 )edit
Login/Signup to Answer

Question Tools

1 follower

Stats

Asked: 2017-11-13 17:22:23 +0100

Seen: 905 times

Last updated: Nov 20 '17