[SNAP] Grant access to /media or /mnt

Support for Ubuntu and other Desktop Linux distributions
Post Reply
User avatar
rednoah
The Source
Posts: 15821
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

[SNAP] Grant access to /media or /mnt

Post by rednoah » 21 Jun 2017, 16:36

By default, SNAP packages are not allowed to access /media. The SNAP sandbox will deny access unless you have explicitly granted access to removable-media.


Grant access to removable-media if you want to process files in the /media folder with FileBot:

Code: Select all

sudo snap connect filebot:removable-media
@see https://forum.snapcraft.io/t/interfaces/6154


:idea: If you want to give a snap application full access to your system (e.g. /mnt) then you can use --devmode when installing the application to disable confinement entirely.
:idea: Please read the FAQ and How to Request Help.

ironcity1861
Posts: 3
Joined: 08 Aug 2016, 18:23

Re: [SNAP] Grant access to /media

Post by ironcity1861 » 26 Sep 2017, 03:54

only 25 minutes after a reinstall I realized this is why it wasn't working!

brunorene
Posts: 5
Joined: 21 Oct 2017, 18:57

Re: [SNAP] Grant access to /media

Post by brunorene » 21 Oct 2017, 19:10

I have a NAS mounted using cifs and Im not able to access the files on it... Is that possible?

Im using

/etc/fstab with the config

Code: Select all

//192.168.1.14/nas /media/nas cifs uid=user,gid=user,iocharset=utf8,file_mode=0660,dir_mode=0770,username=username,password=password 0 0
I have already tried --devmode
and

Code: Select all

sudo snap connect filebot:removable-media
sudo snap connect filebot:network
sudo snap connect filebot:network-bind
Regards

pyropunk2006
Posts: 1
Joined: 14 Dec 2017, 16:48

Re: [SNAP] Grant access to /media

Post by pyropunk2006 » 14 Dec 2017, 16:55

Any idea how to get filebot to see mounted devices? Its on automount if that makes a difference.

User avatar
rednoah
The Source
Posts: 15821
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: [SNAP] Grant access to /media

Post by rednoah » 14 Dec 2017, 19:25

It should work out of the box. What exactly isn't working?
:idea: Please read the FAQ and How to Request Help.

brunorene
Posts: 5
Joined: 21 Oct 2017, 18:57

Re: [SNAP] Grant access to /media

Post by brunorene » 12 Jan 2018, 18:59

All folders outside my home directory are greyed out and I cannot select them in order to process their contents

User avatar
rednoah
The Source
Posts: 15821
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: [SNAP] Grant access to /media

Post by rednoah » 13 Jan 2018, 10:23

SNAP package are confined to your files by default, and /media if you snap connect filebot:removable-media.

:arrow: Please provide screenshots and the absolute paths of some of the files that don't work.

:arrow: The SNAP developers are probably the best source for advice in this case.
:idea: Please read the FAQ and How to Request Help.

harold
Posts: 1
Joined: 19 Feb 2019, 21:42

Re: [SNAP] Grant access to /media or /mnt

Post by harold » 19 Feb 2019, 21:55

+1

I have NFS shares automounted to "/mount/servername/films" via NFS.
The "/mount" directory does not even show in the "Load" listing of directories.

I have enabled the removable-media and dev options. No luck.

I have has filebot installed for years. I think this used to work.
Any suggestions?

User avatar
rednoah
The Source
Posts: 15821
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: [SNAP] Grant access to /media or /mnt

Post by rednoah » 20 Feb 2019, 07:28

I recommend using the classic APT repository if you have difficulties with the new SNAP confinement concepts:
viewtopic.php?f=11&t=6028


:idea: /mount cannot be accessed from SNAP applications due to confinement. snap connect filebot:removable-media will only give you access to /media and no other additional folders.

:idea: Installing with snap install filebot --edge --devmode will completely disable confinement, and thus give you access to your entire filesystem.
:idea: Please read the FAQ and How to Request Help.

rollingdye
Posts: 1
Joined: 20 Feb 2019, 11:20

Re: [SNAP] Grant access to /media or /mnt

Post by rollingdye » 20 Feb 2019, 11:24

snap install filebot --edge --devmode didn't work in my case unfortunately. (trying to write to /mnt/Media)

The flags seem to be correct though since snap list shows them here:
filebot 4.8.5 22 edge filebot devmode


When clicking "Rename" I still get "AccessDeniedException: /mnt/Media/....".


Edit: Fixed it. The problem was that the mounted directory's ownership was set to root. After changing the owner to my username it works now. :D

jarjar
Posts: 2
Joined: 08 Mar 2019, 00:53

Re: [SNAP] Grant access to /media or /mnt

Post by jarjar » 11 Mar 2019, 20:54

I'm having the same problem as above and I have done everything listed above but the only difference is I have Linux Mint installed with a ZFS file system attached to /Server and everything runs from that drive.

ie. Downloads, Picture, Videos ...... everything has been assigned to /Server/Download, /Server/Pictures, /Server/Videos etc

All the directories can be seen by filebot but all the files are greyed out and the /Server directory cannot be seen.
Filebot 4.7.9 still works fine and I'm not after a refund as I have used your program for years so I'm happy to pay.

User avatar
rednoah
The Source
Posts: 15821
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: [SNAP] Grant access to /media or /mnt

Post by rednoah » 12 Mar 2019, 04:57

Just use the traditional APT repository instead if SNAP confinement is giving you trouble:
viewtopic.php?f=11&t=6028
:idea: Please read the FAQ and How to Request Help.

Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests