initctl: output better errors than D-Bus (e.g. for permission denied)

Reported by j^ on 2009-09-17
46
This bug affects 10 people
Affects Status Importance Assigned to Milestone
upstart
Low
Unassigned
upstart (Ubuntu)
Low
Unassigned

Bug Description

Binary package hint: upstart

trying to start/stop a service without having the right privileges one should get a better error message.
right now it looks like this:
$ start network-manager
start: Rejected send message, 1 matched rules; type="method_call", sender=":1.158" (uid=501 pid=22395 comm="start) interface="com.ubuntu.Upstart0_6.Job" member="Start" error name="(unset)" requested_reply=0 destination="com.ubuntu.Upstart" (uid=0 pid=1 comm="/sbin/init"))

what about:
$ start network-manager
You dont have enough privileges to start network-manager, try running sudo start netowkr-manager

The error is quite descriptive, but yes, point taken - it should be a more "human" error not an exact description of which D-Bus security rule it failed

Changed in upstart (Ubuntu):
importance: Undecided → Low
status: New → Triaged
summary: - start/stop service without root priviliges should print better error
+ util: output better errors than D-Bus (e.g. for permission denied)
Changed in upstart:
importance: Undecided → Low
status: New → Triaged
summary: - util: output better errors than D-Bus (e.g. for permission denied)
+ initctl: output better errors than D-Bus (e.g. for permission denied)
Aaron Plattner (aplattner) wrote :

Scott, how did you determine from that message that it was a permission error?

That's the D-Bus permission error ("Rejected send message")

For sanity's sake, I'm closing the Ubuntu tasks for upstream Upstart bugs. I've experimented with having both, but it is just making bugs hard to find now. Will use the policy whereby bugs on the Ubuntu package exist in the Ubuntu packaging or patches only, any bugs in the Upstart code are Upstream bugs.

Changed in upstart (Ubuntu):
status: Triaged → Invalid
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