inconsistent error text when attempting unauthorised command

Bug #1612046 reported by Ian Booth
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Canonical Juju
Fix Released
Medium
Mick Gregg

Bug Description

$ juju add-model foo
ERROR permission denied (unauthorized access)

$ juju add-user mary
ERROR permission denied

I would have thought both are the same cause - unauthorized access.
In any case, we could also make the error message a lot nicer, guiding the user to what they need to do to fix the issue eg ask an admin to grant access. There's wording like this on the juju register command.

Tags: usability
Changed in juju-core:
status: New → Triaged
importance: Undecided → Medium
milestone: none → 2.0.0
tags: added: usability
affects: juju-core → juju
Changed in juju:
milestone: 2.0.0 → none
milestone: none → 2.0.0
Changed in juju:
milestone: 2.0.0 → 2.0-rc1
Changed in juju:
milestone: 2.0-rc1 → 2.0-rc2
assignee: nobody → Richard Harding (rharding)
Mick Gregg (macgreagoir)
Changed in juju:
status: Triaged → In Progress
assignee: Richard Harding (rharding) → Mick Gregg (macgreagoir)
Revision history for this message
Mick Gregg (macgreagoir) wrote :

This seems to be the list:

add-machine
add-model
add-relation
add-space
add-storage
add-subnet
add-unit
add-user

Curtis Hovey (sinzui)
Changed in juju:
milestone: 2.0-rc2 → none
Changed in juju:
milestone: none → 2.0.0
Revision history for this message
Mick Gregg (macgreagoir) wrote :
Curtis Hovey (sinzui)
Changed in juju:
milestone: 2.0.0 → 2.0.1
Mick Gregg (macgreagoir)
Changed in juju:
status: In Progress → Fix Committed
Curtis Hovey (sinzui)
Changed in juju:
status: Fix Committed → Fix Released
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.