Can only run hello snap as root
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Snappy |
New
|
Undecided
|
Unassigned |
Bug Description
I am unable to run the "hello" snap as the normal user. These are the steps I followed:
$ sudo snap install hello
hello 2.10 from 'canonical' installed
$ snap run hello
cannot create user data directory: /users/
I checked the permissions of the directory that it complained about, and they look fine to me:
$ ls -al /users/
total 8
drwxr-xr-x 2 kbavishi netopt-PG0 4096 Apr 27 15:53 .
drwxr-xr-x 4 kbavishi netopt-PG0 4096 Apr 27 15:53 ..
If I run the snap as root, it works.
$ sudo snap run hello
Hello, world!
Any idea what I'm doing wrong?
I browsed through the snap code, and this is probably the line which throws the error: https:/
I'm running Ubuntu 16.04.2 LTS (GNU/Linux 4.4.0-45-generic x86_64)
Thanks Karan
The path /users/ is unusual, mostly I see /home/ in these case. I wonder
if that's the root cause, or related? How is /users/ being mounted?
Mark