Unable to start snap applications if user's home directory is not /home/$USER

Bug #1776800 reported by Omegamormegil
This bug affects 9 people
Affects Status Importance Assigned to Milestone

Bug Description

Users with home directories in /home/$USER can run snap application, but users in /home/users/$USER can't.

nate@WorkstationC:~$ snap --version
snap 2.32.8+18.04
snapd 2.32.8+18.04
series 16
ubuntu 18.04
kernel 4.15.0-22-generic
nate@WorkstationC:~$ echo $HOME
nate@WorkstationC:~$ which hello-world
nate@WorkstationC:~$ hello-world
cannot create nate data directory: /home/users/nate/snap/hello-world/27: Permission denied

Revision history for this message
Omegamormegil (omegamormegil) wrote :
Revision history for this message
R_volkmann (r-volkmann) wrote :

Affects me too in /local/home/$USER

$ snap --version
snap 2.32.9
snapd 2.32.9
series 16
ubuntu 16.04
kernel 4.4.0-128-generic

Revision history for this message
Bryan Quigley (bryanquigley) wrote :
Michael Vogt (mvo)
Changed in snapd:
importance: Undecided → High
Changed in snapd:
status: New → Triaged
Revision history for this message
Aivars Lauzis [LV] (lauzis) wrote :

- have related issue...

have git hook, that logs all commits from all projects into one log file splitted by date.
this works fine with git, and gui interfaces that are installed via apt-get, but snap package in this case "Git Kraken" is trying to write in different path, looks like that $HOME for snap application is not users home.

Revision history for this message
Zygmunt Krynicki (zyga) wrote :

This is a known limitation. We have some plans on how to change that but this is not something we can commit to this ubuntu cycle.

This is also listed on https://forum.snapcraft.io/t/limitations-in-snapd/9718

Changed in snapd:
status: Triaged → Confirmed
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Duplicates of this bug

Other bug subscribers