You are not logged in.

#1 2006-04-01 16:29:13

RobK
Member
Registered: 2005-12-07
Posts: 121

Can't Shutdown from xfce4

I have added the following to /etc/sudoers

%users   ALL=(ALL) NOPASSWD: /sbin/halt, /sbin/reboot, /sbin/reboot -n, /sbin/shutdown -h now

(All my users belong to the users group)

But when I try to shutdown or reboot from within xfce4, I get a prompt for my password.  Typing either the user or the roor password, does not work.  I can only end the xfce4 session and then shutdown or reboot from the command prompt.

What am I doing wrong?

Rob.

Offline

#2 2006-04-01 17:34:54

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: Can't Shutdown from xfce4

xfce4 has a slightly different way of handling this - see here for details.

Offline

#3 2006-04-01 18:48:23

RobK
Member
Registered: 2005-12-07
Posts: 121

Re: Can't Shutdown from xfce4

Thanks.  That is what I needed.  It now works once I modified the following in my /etc/sudoers file.

%users ALL=(ALL) NOPASSWD: /sbin/halt, /sbin/reboot, /sbin/reboot -n, /sbin/shutdown -h now, /opt/xfce4/libexec/xfsm-shutdown-helper

Offline

Board footer

Powered by FluxBB