public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: Michael Kjorling <michael@kjorling.com>
To: gentoo-user@lists.gentoo.org
Subject: [gentoo-user] System shutdown from within Xfce
Date: Wed, 4 Jan 2006 13:26:16 +0000	[thread overview]
Message-ID: <43bbccf8.699bc4a7@vuk.kjorling.com> (raw)

[-- 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 --]

             reply	other threads:[~2006-01-04 13:30 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-01-04 13:26 Michael Kjorling [this message]
  -- strict thread matches above, loose matches on Subject: below --
2006-01-04 13:43 [gentoo-user] System shutdown from within Xfce brettholcomb
2006-01-04 14:07 ` John Jolet

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=43bbccf8.699bc4a7@vuk.kjorling.com \
    --to=michael@kjorling.com \
    --cc=gentoo-user@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox