PDA

View Full Version : [Solved] Awesome WM & XDM reboot/halt permissions


mipam007
October 4th, 2010, 22:30
Hi All,

I have FreeBSD 8.1, Xorg 7.5, Awesome 3.4 and XDM 1.1.8 installed on my PC.

I need to have permissions to reboot and halt PC in XDM and Awesome. It isn't necessary to have it on both ;) I used polkit-action for it - with no luck.

polkit-action --set-defaults-any org.freedesktop.hal.power-management.shutdown yes
polkit-action --set-defaults-any org.freedesktop.hal.power-management.reboot yes

I do not want to use sudo in rc.lua for this purpose or edditing permission of shutdown, halt or reboot.

Have you any suggestion or idea for this case?

Thank you a lot!

vermaden
October 5th, 2010, 06:03
Are You in operator group?

Beastie
October 5th, 2010, 13:46
And then, why not simply use the native, infallible and easy-to-use
shutdown -r now
shutdown -p now
instead of the messy HAL?

mipam007
October 17th, 2010, 12:01
Hi All,

Group operator helps :) Thanks a lot!

lme@
October 17th, 2010, 15:53
Great, that also works with Slim and LXDE. \o/