[Pkg-utopia-maintainers] Bug#668251: org.freedesktop.ConsoleKit.Manager.Stop not working

Simon McVittie smcv at debian.org
Tue Apr 10 14:38:53 UTC 2012


On 10/04/12 08:59, Harald Dunkel wrote:
> Even though I am in group powerdev and I am sitting on the console
> I am not authorized to shutdown the host via dbus. Sample session:
> 
> % dbus-send --print-reply --system
> --dest=org.freedesktop.ConsoleKit
> /org/freedesktop/ConsoleKit/Manager
> org.freedesktop.ConsoleKit.Manager.Stop Error
> org.freedesktop.ConsoleKit.Manager.NotPrivileged: Not Authorized

This error means that ConsoleKit asked PolicyKit whether you were
allowed to use Stop, and PolicyKit replied "no" (without error).

If you haven't edited the policy, it seems the default is:

    <defaults>
      <allow_inactive>no</allow_inactive>
      <allow_active>yes</allow_active>
    </defaults>

or if multiple users are logged in,

    <defaults>
      <allow_inactive>no</allow_inactive>
      <allow_active>auth_admin_keep</allow_active>
    </defaults>

That should mean that you can Stop the system if your session is
considered active, but if another user is logged-in in parallel, you
have to authenticate first.

If you run ck-list-sessions, does it say your session is active?

Are you running systemd? (I ask because systemd takes over some of
CK's functionality, and D-Bus 1.5 has some systemd integration.)

I think this bug might need to be reassigned to ConsoleKit, but CK has
the same Debian maintainers as D-Bus, so I'll leave it here for now.

    S





More information about the Pkg-utopia-maintainers mailing list