Writable directories in /var/snap?
Oliver Grawert
ogra at ubuntu.com
Sun Sep 18 21:15:56 UTC 2016
hi,
On So, 2016-09-18 at 23:03 +0200, Otfried Cheong wrote:
> Hello,
>
> I'm trying to create my first snap, and have a first question:
>
> When a snap is installed (say hello-world), the system creates two
> data
> directories, /var/snap/hello-world/<revision> and
> /var/snap/hello-world/common.
>
> Apparently these are meant for the snap when it needs writable
> storage,
> but both directories are owned by root, and I haven't found any way
> to
> write to them, either from inside the snap or outside, whether
> installing in --devmode or not.
>
they are for services (which always run as root by default) ...
user writable dirs are in ~/snap/<packagename>/<version>/
in the running snap environment this is represented by the
SNAP_USER_DATA environment variable.
ciao
oli
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: This is a digitally signed message part
URL: <https://lists.ubuntu.com/archives/snapcraft/attachments/20160918/a60d9253/attachment.sig>
More information about the Snapcraft
mailing list