[SNAP] Grant access to /media or /mnt

Support for Ubuntu and other Desktop Linux distributions
Post Reply
User avatar
rednoah
The Source
Posts: 14145
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: 14145
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: 14145
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.

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests