shutdown as a user problems

Mark Grieveson dg135 at torfree.net
Sat Nov 18 17:33:43 CET 2006


>
> When I try to 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?
>
> Many thanks,
> --Tony


First, in a terminal, as root, enter "visudo -f /etc/sudoers"

This will allow you to edit the sudoers file.  By doing this, you will 
be giving everyone, and not just root, the power to either reboot or 
shutdown the computer. 

In Debian systems, add:

%users ALL=NOPASSWD:/usr/sbin/xfsm-shutdown-helper 

For other systems, I think the command to add to the sudoers file is:

%users hostname=NOPASSWD:/opt/xfce4/libexec/xfsm-shutdown-helper


Mark




More information about the Xfce mailing list