Results 1 to 6 of 6

Thread: Give snap installs access to... EVERYTHING. (mainly glimpse accessing /var)

  1. #1
    Join Date
    Mar 2016
    Beans
    75

    Give snap installs access to... EVERYTHING. (mainly glimpse accessing /var)

    I have to begin with an opinion: I hate snap packages. Ok moving on:

    Ubuntu 18.04
    Glimpse 0.2.0

    Ok my Glimpse can't read or save to anything in /var. I want (for obvious reasons) to save jpg files to directories under /var/www/

    How do I let it do that? I have /var set to 777 and owned by the same user I'm running glimpse as. I try to save (or just even view in the save dialogue) the /var directory and it still says permission denied.

    Hell, how do I make *all* or *any* snap installs be able to see and write to everything everywhere it could if it wasn't a snap package. Yes, I know security is part of the whole point of snap, whatever, I don't care, I hate snap, I don't want the headache.

    Thanks.

  2. #2
    Join Date
    Oct 2019
    Beans
    85

    Re: Give snap installs access to... EVERYTHING. (mainly glimpse accessing /var)

    I think the first step would be to contact Glimpse Snap creators of the issue. I'm no SNAP expert, but I know that they can list various rights they need to access in snapcraft.yaml.

    The other thing is you can always try to install the snap in devmode. This normally gives you more rights.
    Though of course, you shouldn't do this on the regular.
    snap install --devmode ...

  3. #3
    Join Date
    Mar 2010
    Location
    Squidbilly-Land
    Beans
    22,126
    Distro
    Ubuntu Mate 16.04 Xenial Xerus

    Re: Give snap installs access to... EVERYTHING. (mainly glimpse accessing /var)

    snaps cannot write anywhere except under /home/ and if the snap packaging team decided, perhaps, under /media/ and /mnt/, if we setup a "connection". Those 2 other places are not automatic.
    A command:
    Code:
    $ snap connections <application-name> --all
    https://snapcraft.io/docs/removable-media-interface

    There isn't any way for snaps to write anywhere else. That's part of the snap design. If this doesn't work for you, look for a PPA version of the tool.

  4. #4
    Join Date
    Mar 2016
    Beans
    75

    Re: Give snap installs access to... EVERYTHING. (mainly glimpse accessing /var)

    Ug. Ok thanks, I'll go "complain" in the Glimpse forums. I pity the people who have the crazy idea of using glimpse to make and edit image files that are served up to internet world wide web sites. What an odd uncommon thing to use it for!

  5. #5
    Join Date
    Jan 2006
    Location
    Sunny Southend-on-Sea
    Beans
    8,092
    Distro
    Kubuntu 20.04 Focal Fossa

    Re: Give snap installs access to... EVERYTHING. (mainly glimpse accessing /var)

    If the snap's author has set it up, you can use classic confinement, which lifts the sandboxing restrictions.

    Setting permissions to 777 is a terrible idea.

  6. #6
    Join Date
    May 2010
    Beans
    950

    Re: Give snap installs access to... EVERYTHING. (mainly glimpse accessing /var)

    Quote Originally Posted by CatKiller View Post
    Setting permissions to 777 is a terrible idea.
    +1

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •