public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] System shutdown from within Xfce
@ 2006-01-04 13:26 Michael Kjorling
  0 siblings, 0 replies; 3+ messages in thread
From: Michael Kjorling @ 2006-01-04 13:26 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 1887 bytes --]

I run Xfce 4.2.3.2 and want to be able to shut down my system from
within X. At the moment I have to log in as root and then issue a
shutdown command, but Xfce is supposed to support doing this through
the GUI.

Looking around turned up the Xfce documentation and specifically
<http://www.xfce.org/documentation/docs-4.2/xfce4-session.html#xfsm-shutdown>,
which says I need sudo and the right to execute xfsm-shutdown-helper
as root. OK, so I emerged app-admin/sudo and added the following line
at the end of /etc/sudoers using visudo:

%wheel	vuk=/usr/libexec/xfsm-shutdown-helper	NOPASSWD

(Those are tabs.) My system is named vuk, I am a member of the wheel
group, and /etc/hosts says:

	vuk ~ # grep vuk /etc/hosts
	127.0.0.1       vuk.kjorling.com vuk localhost
	::1 ip6-localhost vuk ip6-loopback
	vuk ~ # 

Still, trying "sudo /usr/libexec/xfsm-shutdown-helper" from the
command line gives me:

	michael@vuk ~ $ sudo /usr/libexec/xfsm-shutdown-helper
	Password: (trying the root password)
	Sorry, try again.
	Password: (^C)
	sudo: 1 incorrect password attempt
	michael@vuk ~ $ sudo /usr/libexec/xfsm-shutdown-helper
	Password: (trying my own password)
	Sorry, user michael is not allowed to execute '/usr/libexec/xfsm-shutdown-helper' as root on vuk.
	michael@vuk ~ $ 

...and the options to shut down or reboot are still grayed out in the
Xfce quit dialog box.

I checked /etc/group and did not find any obvious group I should add
myself to (say, `sudoers' or something like that). I use PAM and
/etc/pam.d/sudo (autogenerated) uses system-auth for auth, account,
password and session.

Am I missing something here?

-- 
Michael Kjörling, michael@kjorling.com - http://michael.kjorling.com/
* ASCII Ribbon Campaign: Against HTML Mail, Proprietary Attachments *
* ..... No bird soars too high if he soars with his own wings ..... *

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [gentoo-user] System shutdown from within Xfce
@ 2006-01-04 13:43 brettholcomb
  2006-01-04 14:07 ` John Jolet
  0 siblings, 1 reply; 3+ messages in thread
From: brettholcomb @ 2006-01-04 13:43 UTC (permalink / raw
  To: gentoo-user

You have to set yourself up to be able do shutdown and reboot if desired.  Do this in the sudoers file.  I don't have my setup where I can reach it at this moment but if you need I can post it later tonight.

> 
> From: Michael Kjorling <michael@kjorling.com>
> Date: 2006/01/04 Wed AM 08:26:16 EST
> To: gentoo-user@lists.gentoo.org
> Subject: [gentoo-user] System shutdown from within Xfce
> 
> 

-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [gentoo-user] System shutdown from within Xfce
  2006-01-04 13:43 brettholcomb
@ 2006-01-04 14:07 ` John Jolet
  0 siblings, 0 replies; 3+ messages in thread
From: John Jolet @ 2006-01-04 14:07 UTC (permalink / raw
  To: gentoo-user


On Jan 4, 2006, at 7:43 AM, <brettholcomb@bellsouth.net> wrote:

> You have to set yourself up to be able do shutdown and reboot if  
> desired.  Do this in the sudoers file.  I don't have my setup where  
> I can reach it at this moment but if you need I can post it later  
> tonight.
>
what you wanted was %wheel		(root)	shutdowncommand

what you put was let wheel group run the shutdown command as  
vuk....you want to replace vuk with root.

>>
>> From: Michael Kjorling <michael@kjorling.com>
>> Date: 2006/01/04 Wed AM 08:26:16 EST
>> To: gentoo-user@lists.gentoo.org
>> Subject: [gentoo-user] System shutdown from within Xfce
>>
>>
>
> -- 
> gentoo-user@gentoo.org mailing list
>

-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2006-01-04 14:13 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-01-04 13:26 [gentoo-user] System shutdown from within Xfce Michael Kjorling
  -- strict thread matches above, loose matches on Subject: below --
2006-01-04 13:43 brettholcomb
2006-01-04 14:07 ` John Jolet

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox