shutdown as a user problems
Mike Massonnet
mmassonnet at gmail.com
Sat Nov 18 11:24:33 CET 2006
Fri, 17 Nov 2006 17:45:42 -0800 - Anthony Ewell <aewell at gbis.com>
wrote :
> Hi All,
>
> I am trying to set up my first Linux workstation.
> I am using XFce 4.2. I have done several servers before
> and always had root privileges.
>
> As a user, I can shutdown, poweroff, and reboot from
> a command line, but not from the XFce power button.
> I read the section in XFce session and added the
> requested line(s) to sudoers:
>
> %users ALL=/sbin/shutdown
> %users ALL=/sbin/halt
> %users ALL=/sbin/poweroff
> %users ALL=/usr/bin/reboot
> %users ALL=/usr/local/libexec/xfsm-shutdown-helper
>
> When I try to (XFce) power off, I get asked for the root's
> password, which I dutifully enter, then I get told I
> do not have permission. No joy is to be had.
>
> What am I missing?
When you have sudo rights on a command, you must enter the user
password. Don't forget to run man sudoers ;-)
Here is what I have, to give an example:
Cmnd_Alias HALT = /usr/sbin/xfsm-shutdown-helper
ALL ALL = (ALL) NOPASSWD: HALT
>
> Many thanks,
> --Tony
>
Cheers,
Mike
--
http://massonnet.org/ Mike Massonnet (mmassonnet) _
,_( ))___ (`
GnuPG 0--" 0xF8C80F97 \' _ `\ )
C4DA 431D 52F9 F930 3E5B 3E3D 546C 89D9 F8C8 0F97 =`---<___/---'
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://mail.xfce.org/pipermail/xfce/attachments/20061118/a4dae778/attachment.pgp>
More information about the Xfce
mailing list