You are not logged in.
hi everyone,
i know you think "yet another how-to-reboot-shutdown topic". well, that actually is, indeed.
i set up XFCE on a old trusty 8-year old computer (athlon 750) for my daughter. I want her to be able to shutdown the computer. but now these entries are greyed out. this used to work, though, thanks to
%users localhost=NOPASSWD:/usr/lib/xfce4/xfsm-shutdown-helper
in /etc/sudoers.
but now this doesn't work any more.
I read my user should be in the "power" group. it now is.
I read my user should be un the "shutdown" group. there is no such group.
what else can i do ? note that i don't want to change permissions on halt command.
thx
Last edited by brazzmonkey (2008-11-25 19:52:48)
what goes up must come down
Offline
check /etc/dbus-1/system.d/hal.conf
somewhere around line 45 is the user ID which is allowed to shutdown/reboot
(you can also use a group if you change "policy user" to "policy group")
☃ Snowman ☃
Offline
i'll check that tonight. that doesn't explain why it used to work, though.
(you can also use a group if you change "policy user" to "policy group")
you mean i could create - for instance - a "shutdown" group, register my user in the group, and allow this group to shtudown/reboot in hal.conf ?
what goes up must come down
Offline
i'll check that tonight. that doesn't explain why it used to work, though.
(you can also use a group if you change "policy user" to "policy group")
you mean i could create - for instance - a "shutdown" group, register my user in the group, and allow this group to shtudown/reboot in hal.conf ?
yup, should work, at least it did in 4.4.2 iirc
maybe the sudo solution only works when hal/dbus are not running
☃ Snowman ☃
Offline
maybe the sudo solution only works when hal/dbus are not running
i don't know but it's true it's somewhat redundant.
what goes up must come down
Offline
lol, forget what i said.
just log out and relogin after adding your user to group 'power'
☃ Snowman ☃
Offline
yeah i know, i surely did that already. hence this thread.
what goes up must come down
Offline
What login manager are you using?
Offline
Gdm
what goes up must come down
Offline
Try adding this to /etc/PolicyKit/PolicyKit.conf
<config version="0.1">
<match action="org.freedesktop.hal.power-management.shutdown">
<return result="yes"/>
</match>
<match action="org.freedesktop.hal.power-management.reboot">
<return result="yes"/>
</match>
</config>
Offline
and in gnome, i have to use gdm to start gnome or i cant shutdown.
i dont like that.
Offline
ok, i sorted this one out : hal.conf was corrupted. hal and dbus could not start, hence my troubles.
robmaloy, you pointed me to the right place to investigate !
thanks all of you !
what goes up must come down
Offline