Public bug reported:
I am currently following the tutorial at http://snapcraft.io/ and tried
to install my first snap (under current yakkety amd64):
$ sudo apt install -y snapd
$ sudo snap install hello-world
74.08 MB / 74.28 MB
[=================================================================>_] 99.73 %
2.12 MB/s
hello-world (stable) 6.3 from 'canonical' installed
$ LC_ALL=C /snap/bin/hello-world
mkdir: cannot create directory '/home/martin/snap/hello-world': Permission
denied
strace shows:
[pid 14728] chdir("martin") = 0
[pid 14728] mkdir("snap", 0777) = -1 EEXIST (File exists)
[pid 14728] chdir("snap") = 0
[pid 14728] mkdir("hello-world", 0777) = -1 EACCES (Permission denied)
[pid 14728] chdir("hello-world") = -1 ENOENT (No such file or directory)
Indeed I have an already existing root-owned ~/snap directory, as I was
asked a few days to install the ubuntu-device-flash beta snap. That
program needs to run as root and was the first-ever snap that I
installed.
I suggest to never create ~/snap with root privileges to avoid that, and
also to avoid breaking backups etc.
ProblemType: Bug
DistroRelease: Ubuntu 16.10
Package: snapd 2.13+16.10
ProcVersionSignature: Ubuntu 4.4.0-9136.55-generic 4.4.16
Uname: Linux 4.4.0-9136-generic x86_64
ApportVersion: 2.20.3-0ubuntu7
Architecture: amd64
CurrentDesktop: i3
Date: Mon Aug 29 22:07:30 2016
EcryptfsInUse: Yes
SourcePackage: snapd
UpgradeStatus: No upgrade log present (probably fresh install)
** Affects: snapd (Ubuntu)
Importance: Medium
Status: New
** Tags: amd64 apport-bug yakkety
** Changed in: snapd (Ubuntu)
Importance: Undecided => Low
** Description changed:
I am currently following the tutorial at http://snapcraft.io/ and tried
to install my first snap (under current yakkety amd64):
$ sudo apt install -y snapd
$ sudo snap install hello-world
- 74.08 MB / 74.28 MB
[=================================================================>_] 99.73 %
2.12 MB/s
+ 74.08 MB / 74.28 MB
[=================================================================>_] 99.73 %
2.12 MB/s
hello-world (stable) 6.3 from 'canonical' installed
$ LC_ALL=C /snap/bin/hello-world
mkdir: cannot create directory '/home/martin/snap/hello-world': Permission
denied
strace shows:
[pid 14728] chdir("martin") = 0
[pid 14728] mkdir("snap", 0777) = -1 EEXIST (File exists)
[pid 14728] chdir("snap") = 0
[pid 14728] mkdir("hello-world", 0777) = -1 EACCES (Permission denied)
[pid 14728] chdir("hello-world") = -1 ENOENT (No such file or
directory)
- Indeed I have an already existing ~/snap directory, as I was asked a few
- days to install the ubuntu-device-flash beta snap. This needs to run as
- root and was the first-ever snap that I installed.
+ Indeed I have an already existing root-owned ~/snap directory, as I was
+ asked a few days to install the ubuntu-device-flash beta snap. That
+ program needs to run as root and was the first-ever snap that I
+ installed.
- I suggest to never create ~/snap with root privileges to avoid that.
+ I suggest to never create ~/snap with root privileges to avoid that, and
+ also to avoid breaking backups etc.
ProblemType: Bug
DistroRelease: Ubuntu 16.10
Package: snapd 2.13+16.10
ProcVersionSignature: Ubuntu 4.4.0-9136.55-generic 4.4.16
Uname: Linux 4.4.0-9136-generic x86_64
ApportVersion: 2.20.3-0ubuntu7
Architecture: amd64
CurrentDesktop: i3
Date: Mon Aug 29 22:07:30 2016
EcryptfsInUse: Yes
SourcePackage: snapd
UpgradeStatus: No upgrade log present (probably fresh install)
** Changed in: snapd (Ubuntu)
Importance: Low => Medium
** Summary changed:
- Cannot start hello-world snap: mkdir: cannot create directory
'/home/martin/snap/hello-world': Permission denied
+ Cannot start hello-world snap: mkdir: cannot create directory
'/home/martin/snap/hello-world': Permission denied -- don't create $HOME/snaps
as root
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1618198
Title:
Cannot start hello-world snap: mkdir: cannot create directory
'/home/martin/snap/hello-world': Permission denied -- don't create
$HOME/snaps as root
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/snapd/+bug/1618198/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs