You are not logged in.

#1 2008-11-25 08:48:12

brazzmonkey
Member
From: between keyboard and chair
Registered: 2006-03-16
Posts: 818

[SOLVED] allow users to reboot / shutdown within XFCE

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

#2 2008-11-25 08:56:28

robmaloy
Member
From: Germany
Registered: 2008-05-14
Posts: 263

Re: [SOLVED] allow users to reboot / shutdown within XFCE

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

#3 2008-11-25 09:23:50

brazzmonkey
Member
From: between keyboard and chair
Registered: 2006-03-16
Posts: 818

Re: [SOLVED] allow users to reboot / shutdown within XFCE

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

#4 2008-11-25 10:28:14

robmaloy
Member
From: Germany
Registered: 2008-05-14
Posts: 263

Re: [SOLVED] allow users to reboot / shutdown within XFCE

brazzmonkey wrote:

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

#5 2008-11-25 10:31:32

brazzmonkey
Member
From: between keyboard and chair
Registered: 2006-03-16
Posts: 818

Re: [SOLVED] allow users to reboot / shutdown within XFCE

robmaloy wrote:

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

#6 2008-11-25 11:15:18

robmaloy
Member
From: Germany
Registered: 2008-05-14
Posts: 263

Re: [SOLVED] allow users to reboot / shutdown within XFCE

lol, forget what i said.


just log out and relogin after adding your user to  group 'power'


☃ Snowman ☃

Offline

#7 2008-11-25 11:45:25

brazzmonkey
Member
From: between keyboard and chair
Registered: 2006-03-16
Posts: 818

Re: [SOLVED] allow users to reboot / shutdown within XFCE

yeah i know, i surely did that already. hence this thread.


what goes up must come down

Offline

#8 2008-11-25 11:53:41

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,365
Website

Re: [SOLVED] allow users to reboot / shutdown within XFCE

What login manager are you using?

Offline

#9 2008-11-25 12:26:54

brazzmonkey
Member
From: between keyboard and chair
Registered: 2006-03-16
Posts: 818

Re: [SOLVED] allow users to reboot / shutdown within XFCE

Gdm


what goes up must come down

Offline

#10 2008-11-25 12:29:29

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,365
Website

Re: [SOLVED] allow users to reboot / shutdown within XFCE

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

#11 2008-11-25 14:30:15

jarryson
Member
Registered: 2007-02-18
Posts: 298

Re: [SOLVED] allow users to reboot / shutdown within XFCE

and in gnome, i have to use gdm to start gnome or i cant shutdown.

i dont like that.

Offline

#12 2008-11-25 19:52:20

brazzmonkey
Member
From: between keyboard and chair
Registered: 2006-03-16
Posts: 818

Re: [SOLVED] allow users to reboot / shutdown within XFCE

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

Board footer

Powered by FluxBB