Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
shutdown in XFCE 4.2 - how?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
leo_t
Tux's lil' helper
Tux's lil' helper


Joined: 28 Apr 2004
Posts: 93

PostPosted: Mon Jan 17, 2005 9:15 pm    Post subject: shutdown in XFCE 4.2 - how? Reply with quote

hello,
i just installed XFCE 4.2 and notised that i can't shutdown or reboot the machine from xfce, i have to first logout to GDM and from there to restart, how can i fix this so i will be able to restart from XFCE?

thanks
Back to top
View user's profile Send private message
simondo42
n00b
n00b


Joined: 22 Nov 2004
Posts: 42
Location: Dunedin, New Zealand

PostPosted: Mon Jan 17, 2005 11:02 pm    Post subject: Re: shutdown in XFCE 4.2 - how? Reply with quote

leo_t wrote:
hello,
i just installed XFCE 4.2 and notised that i can't shutdown or reboot the machine from xfce, i have to first logout to GDM and from there to restart, how can i fix this so i will be able to restart from XFCE?

thanks


Hi,

Follow the instructions in the FAQ at www.xfce.org (and in the xfce-session documentation). I found it would only work if I used the NOPASSWD option in the sudoers file i.e.

my-username my-host = NOPASSWD: /usr/libexec/xfsm-shutdown-helper

Then it seemed to work fine.

Hope that helps,
Simon
Back to top
View user's profile Send private message
leo_t
Tux's lil' helper
Tux's lil' helper


Joined: 28 Apr 2004
Posts: 93

PostPosted: Tue Jan 18, 2005 1:58 pm    Post subject: Reply with quote

thanks, is there any way to configure this without having to install sudo?
Back to top
View user's profile Send private message
chunderbunny
Veteran
Veteran


Joined: 31 May 2004
Posts: 1281
Location: 51°24'27" N, 0°57'15" W

PostPosted: Tue Jan 18, 2005 3:22 pm    Post subject: Reply with quote

No, you need root privs in order to issue the shutdown and reboot commands. In this case using sudo is a much better idea than chmod'ing shutdown. As long as you only use that one line in your sudoers file then only one user who is logged on locally (i.e, not over a netwrok) will be allowed to execute one command with root privs, so it's pretty safe. BTW, replace your username with "%users" to allow everyone in the "users" group to be able to shutdown.
Back to top
View user's profile Send private message
leo_t
Tux's lil' helper
Tux's lil' helper


Joined: 28 Apr 2004
Posts: 93

PostPosted: Tue Jan 18, 2005 3:56 pm    Post subject: Reply with quote

thanks :D
problem solved
Back to top
View user's profile Send private message
undrwater
Apprentice
Apprentice


Joined: 28 Jan 2003
Posts: 295
Location: Caucasia

PostPosted: Tue Nov 06, 2007 7:35 pm    Post subject: Reply with quote

Is this the same for the latest xfce4? Can I use %users or %wheel to accomplish the same thing?

Trying a few of these combinations including the actual user and localhost (current host name) doesn't seem to work.


Does dbus or HAL have any part in this (I saw a post on the arch wiki that mentioned it)?

PS: sorry to dredge up an old post...but it fit.
_________________
Open-mindedness is painful...
Back to top
View user's profile Send private message
mark_alec
Bodhisattva
Bodhisattva


Joined: 11 Sep 2004
Posts: 6066
Location: Melbourne, Australia

PostPosted: Wed Nov 07, 2007 12:00 am    Post subject: Reply with quote

http://wiki.xfce.org/faq#session_manager :D
_________________
www.gentoo.org.au || #gentoo-au
Back to top
View user's profile Send private message
undrwater
Apprentice
Apprentice


Joined: 28 Jan 2003
Posts: 295
Location: Caucasia

PostPosted: Wed Nov 07, 2007 6:57 pm    Post subject: Reply with quote

Thanks for re-directing me mark_alec, I had seen that page, but I'm sure I've forgotten to make the change in hal.conf.

I'll edit the post if that is the case.

[EDIT]
I placed the user in the 'plugdev' group, and this worked.
[/EDIT]
_________________
Open-mindedness is painful...
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum