Ask Your Question

Access to /media/***/X.yyy file was denied

asked 2017-12-09 16:28:56 +0200

Rafi gravatar image

updated 2017-12-09 16:31:27 +0200

Hello everyone, I've recently updated my LibreOffice suit to, on my Ubuntu 16.04.3 LTS.

Whenever I try to access a document on my mounted media, I get an error message saying:

Access to /media/.../Data/.../.../xxx.yyy was denied.

I checked the permissions, and my user is able to read and write the file. I even tried executing sudo libreoffice, and got the following output:

sudo libreoffice
mkdir: cannot create directory '/run/user/0': Permission denied
No protocol specified
No protocol specified
mkdir: cannot create directory '/run/user/0': Permission denied
No protocol specified
No protocol specified

Nothing happened afterwards, at least within the period of time I had allowed.

Right now, my workaround is to move the documents to the desktop, work on them, then recopy them back to the mounted drives. Is there a permanent solution to this nuisance ?

Some technical details according to LibreOffice's Help > About LibreOffice:

Version: Build ID: libreoffice- CPU threads: 4; OS: Linux 4.10; UI render: default; VCL: gtk3; Locale: en-GB (en_GB.UTF-8); Calc: group

Thanks in advance.

edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted

answered 2017-12-16 14:51:20 +0200

Rafi gravatar image

I have solved the issue. I had updated the LibreOffice package through snap, whose system has a certain architecture that requires users to manually authorise access permissions via interfaces' connections.

After I had read many responses on the Internet, especially this and this, I ran the following command in Terminal:

sudo snap connect libreoffice:removable-media :removable-media

And now LibreOffice is able to access my mounted media's data.

edit flag offensive delete link more


Worked perfect for me!

BioBen gravatar imageBioBen ( 2018-03-15 14:12:08 +0200 )edit
Login/Signup to Answer

Question Tools

1 follower


Asked: 2017-12-09 16:28:56 +0200

Seen: 977 times

Last updated: Dec 16 '17