if your first installed snap contains a binary needing sudo ~/snap is created with root.root ownership

Bug #1620592 reported by Oliver Grawert
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
snapd
Triaged
Low
Unassigned

Bug Description

using pi2 images the first snap i install is always the "classic" snap

sudo snap install classic --edge --devmode"

this snap requires you to use sudo to set up the classic dimension:

"sudo classic"

if i try to install and run another snap later i get:

ogra@localhost:~$ htop
mkdir: cannot create directory ‘/home/ogra/snap/htop’: Permission denied
ogra@localhost:~$

ogra@localhost:~$ ls -lh
total 4.0K
drwxr-xr-x 3 root root 4.0K Sep 6 11:47 snap

i have to chown the snap dir to make it work ...

Zygmunt Krynicki (zyga)
Changed in snap-confine:
status: New → Triaged
importance: Undecided → High
Revision history for this message
Zygmunt Krynicki (zyga) wrote :

FYI. This bug is more complex as both snap-run and snap-confine currently create the $SNAP_USER_DATA directory.

Zygmunt Krynicki (zyga)
Changed in snap-confine:
milestone: none → 1.0.42
Zygmunt Krynicki (zyga)
Changed in snap-confine:
milestone: 1.0.42 → none
Zygmunt Krynicki (zyga)
affects: snappy → snapd
no longer affects: snap-confine
Changed in snapd:
status: New → Triaged
importance: Undecided → Low
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.