From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lists.gentoo.org ([140.105.134.102] helo=robin.gentoo.org) by nuthatch.gentoo.org with esmtp (Exim 4.54) id 1Eu8j8-0006Ak-9Q for garchives@archives.gentoo.org; Wed, 04 Jan 2006 13:30:54 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.13.5/8.13.5) with SMTP id k04DSZrf001615; Wed, 4 Jan 2006 13:28:35 GMT Received: from varg.kjorling.com (varg.kjorling.com [213.88.238.204]) by robin.gentoo.org (8.13.5/8.13.5) with ESMTP id k04DQFCc027138 for ; Wed, 4 Jan 2006 13:26:15 GMT Received: by varg.kjorling.com (Postfix, from userid 201) id DEEE12C43E; Wed, 4 Jan 2006 13:26:14 +0000 (GMT) Received: from vuk (1-1-3-28a.sde.skv.bostream.se [82.183.192.131]) by varg.kjorling.com (Postfix) with ESMTP id EF6DC130 for ; Wed, 4 Jan 2006 13:26:11 +0000 (GMT) Date: Wed, 4 Jan 2006 13:26:16 +0000 From: Michael Kjorling To: gentoo-user@lists.gentoo.org Subject: [gentoo-user] System shutdown from within Xfce Message-ID: <43bbccf8.699bc4a7@vuk.kjorling.com> Mail-Followup-To: gentoo-user@lists.gentoo.org Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="sdtB3X0nJg68CQEu" Content-Disposition: inline X-Spam-Checker-Version: SpamAssassin 3.0.4-gr0 (2005-06-05) on varg.kjorling.com X-Spam-Status: Level=(-4.6), IsSpam=No, Host=varg.kjorling.com (SA 3.0.4-gr0) X-Archives-Salt: 9e2e98f2-a84d-4cea-a050-73454c2ab986 X-Archives-Hash: 569a93137d875bb1e9dc91c0b44ade4c --sdtB3X0nJg68CQEu Content-Type: text/plain; charset=iso-8859-15 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 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 , 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=3D/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 ~ #=20 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 ~ $=20 =2E..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? --=20 Michael Kj=F6rling, 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 ..... * --sdtB3X0nJg68CQEu Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (GNU/Linux) iD8DBQFDu8z4dY+HSb3praYRArHcAJ0UyvoK8X+mtn6plR3RGWmnO4Nn8QCgrlCB U/6fB633daeyp1rrht8mhLY= =AJ5o -----END PGP SIGNATURE----- --sdtB3X0nJg68CQEu-- -- gentoo-user@gentoo.org mailing list