snappy install requires root or login, but doesn't tell you so
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Snappy |
Fix Released
|
Wishlist
|
Unassigned | ||
snapd (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
Xenial |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
A new user will try and run something similar to the following:
$ snap install foo
Only to be given this error message:
"error: access denied"
This isn't particularly friendly. They might then look at the help docs for the install command:
$ snap install -h
Usage:
snap [OPTIONS] install [install-OPTIONS] <snap>
The install command installs and activates the named snap in the system.
Help Options:
-h, --help Show this help message
[install command options]
--devmode Install the snap with non-enforcing security
...which never mentions the fact that this command requires root. I think two things should be tweaked here:
1) The error message when root access is not available should be something much nicer, perhaps "Error: 'snap install' requires root access. Please re-run with 'sudo snap install <packagename>'."
2) The help docs for 'snap install' shold mention at the top that this command requires root.
Changed in snappy: | |
status: | New → Triaged |
importance: | Undecided → Wishlist |
milestone: | none → sru-1 |
summary: |
- snappy install requires root, but doesn't tell you so + snappy install requires root or login, but doesn't tell you so |
Changed in snappy: | |
milestone: | sru-1 → sru-2 |
Changed in snappy: | |
status: | In Progress → Fix Released |
To make things more interesting, note you do *not* need root to install. Try:
snap login you@email
...
snap install http