What to put in sudoers to shutdown from Xfce?

Brett I. Holcomb brettholcomb at bellsouth.net
Sun Jul 31 05:22:20 CEST 2005


Here's what I have

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

where HALT, REBOOT, and  SHUTDOWN are:

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

On Sat, 30 Jul 2005, Brian J. Tarricone wrote:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Brett wrote:
>> OK I have been using Gnome for years with Red Hat and never needed to use
>> sudo before. I understand I need sudo to shutdown my system with Xfce. For
>> some reason my brain cannot latch onto the correct entries I need to put
>> in the sudoers file to allow one user to perform a simple shutdown -h now.
>> I tried "userName localhost=/sbin/shutdown -h now", this makes the reboot
>> and turn off computer options active but then it asks my pasword and
>> denies my shuting down the system anyway. I'm at a loss.
>
> RTFM:
> http://www.loculus.nl/xfce/documentation/docs-4.2/xfce4-session.html#xfsm-shutdown
>
> 	-brian
>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.1 (GNU/Linux)
>
> iD8DBQFC7DkE6XyW6VEeAnsRAlUDAKDShwiULDP2iF0QsZAc5iA9l/hRlQCeN6Q6
> 6vO+b2wFzHGxQibU5zbkYHg=
> =Jgnm
> -----END PGP SIGNATURE-----
> _______________________________________________
> Xfce mailing list
> Xfce at xfce.org
> http://foo-projects.org/mailman/listinfo/xfce
> http://www.xfce.org
>

-- 

Brett I. Holcomb
brettholcomb at R777bellsouth.net
Registered Linux User #188143
Remove R777 to email



More information about the Xfce mailing list