Enable reboot/shutdown (newbie question?)

Nathan Elliott nelliott at gci.com
Sat Mar 5 21:56:59 CET 2005


I'm already "ALL=(ALL) NOPASSWD: ALL" in the /etc/sudoers file, so I gave up
and created two menu shortcuts linked to "sudo reboot" and "sudo halt",
which achieves the same result.  =)  Thanks everyone for trying to help.

Nathan Elliott 

-----Original Message-----
From: Brett I. Holcomb [mailto:brettholcomb at charter.net]
Sent: Friday, March 04, 2005 5:09 PM
To: xfce at xfce.org
Subject: RE: Enable reboot/shutdown (newbie question?)


I found I had to have the following line in which I added

myuser ALL=/usr/libexec/xfsm-shutdown-helper, HALT, REBOOT, SHUTDOWNNOW

where

Cmnd_Alias      HALT = /usr/sbin/halt
Cmnd_Alias      KILL = /usr/bin/kill
Cmnd_Alias      REBOOT = /usr/sbin/reboot
Cmnd_Alias      SHUTDOWN = /usr/sbin/shutdown
Cmnd_Alias      SHUTDOWNNOW = /usr/sbin/shutdown -h now

If I only had the /usr/libexec/... it wouldn't shutdown.  Once I added the 
rest it worked.


On Fri, 4 Mar 2005, Nathan Elliott wrote:

> -----Original Message-----
> From: Nathan Elliott
> Sent: Thursday, March 03, 2005 6:43 PM
> To: 'xfce at xfce.org'
> Subject: Enable reboot/shutdown (newbie question?)
>
>
> I read the manual, and searched the online mailing list archives...and
> either I'm the only dope with this problem, or I'm just missing the
obvious.
>
> I'm running XFCE 4.2 installed via RPMs from http://www.eslrahc.com/ on
> Mandrake 10.1
>
> Everything works great, and I love it!!!...Except I can't get the darned
> shutdown/reboot options enabled.
>
> Snippet from my /etc/sudoers file:
>
> nelliott ALL=(ALL) NOPASSWD: ALL
> nelliott localhost=/usr/local/libexec/xfsm-shutdown-helper
>
> As you might guess, I can sudo anything I want on the system.  Still, the
> little reboot and shutdown options are un-selectable to me.  =(
>
> The binary file "xfsm-shutdown-helper" actually installed itself to
> /usr/lib, so first I tried adding that path to my sudoers file.  Next I
> created a symlink to the file in /usr/local/libexec...
>
> Please help!??
>
> Thanks.
>
>
> Message: 10
> Date: Fri, 4 Mar 2005 02:00:25 -0600
> From: Thetargos <thetargos at gmail.com>
> Subject: Re: Enable reboot/shutdown (newbie question?)
> To: XFCE general discussion list <xfce at xfce.org>
> Message-ID: <9f2d9fa8050304000066f85f78 at mail.gmail.com>
> Content-Type: text/plain; charset=US-ASCII
>
> Did you also install the xfce-session packages?
>
>
> -------
>
> Yes, xfce-session is installed.  For fun I installed XFCE 4.2 on a second
> machine, and I have the same problem there.  Any other cool ideas?
>
> I wildly theorized that xfsm-shutdown-helper wasn't in my path, so I
copied
> it to /usr/X11R6/bin, this didn't help matters at all either.
> _______________________________________________
> Xfce mailing list
> Xfce at xfce.org
> http://foo-projects.org/mailman/listinfo/xfce
> http://www.xfce.org
>

-- 

Brett I. Holcomb
brettholcomb at R777charter.net
Registered Linux User #188143
Remove R777 to email
_______________________________________________
Xfce mailing list
Xfce at xfce.org
http://foo-projects.org/mailman/listinfo/xfce
http://www.xfce.org



More information about the Xfce mailing list