On Wednesday 06 July 2011 16:37:40 john wrote:
> Since a recent upgrade of polkit (I think) as a normal user I can no
> longer shutdown using log out, shutdown option not available. As root
> using shutdown only logs you out but does not shutdown.
> 
> On a second machine as a normal user I can see shutdown but this only
> logs me out.
> 
> Are we supposed to write our own rules for this?
> 
> I am in plugdev group and have dbus, consolekit and polkit in use flags.
> 
> I cannot see any difference between config files on 2 machines but 1 is
> a laptop the other desktop???
> 
> Any suggestions other than converting to e16? (which is becoming
> tempting). This seems to happen every upgrade of xfce4/polkit/dbus.

I had the same problem and have made this rule/config in 
/etc/polkit-1/localauthority/50-local.d/power.pkla

-- start file --
[Local restart]
Identity=unix-group:wheel
Action=org.freedesktop.consolekit.system.restart
ResultAny=yes
ResultInactive=no
ResultActive=yes

[Local shutdown]
Identity=unix-group:wheel
Action=org.freedesktop.consolekit.system.stop
ResultAny=yes
ResultInactive=no
ResultActive=yes

[Local restart - multiple]
Identity=unix-group:wheel
Action=org.freedesktop.consolekit.system.restart-multiple-users
ResultAny=yes
ResultInactive=no
ResultActive=yes

[Local shutdown - multiple]
Identity=unix-group:wheel
Action=org.freedesktop.consolekit.system.stop-multiple-users
ResultAny=yes
ResultInactive=no
ResultActive=yes
-- end file --

don't know where I got it from, not from a Gentoo handbook...
but this works for me 8-)

you might also want to use an udisks.pkla to access usb devices:

-- start file --
[udisks full access]
Identity=unix-group:usb
Action=org.freedesktop.udisks.*
ResultAny=yes
-- end file --


        Rudmer

Reply via email to