------------------ Original ------------------ From: "Tomas Bodzar"<tomas.bod...@gmail.com>;
On Tue, Aug 27, 2013 at 2:34 PM, Fung <fungm...@qq.com> wrote: > 1. root login xfce can shutdown the pc smoothly using mouse. > 2. other user in xfce can not shutdown the pc, why? > > # visudo > ... > %wheel ALL=(ALL) SETENV: ALL > share ALL=NOPASSWD: /usr/local/lib/xfce4/session/xfsm-shutdown-helper > ... > > # id share > uid=1000(share) gid=1000(share) groups=1000(share), 0(wheel) > > > # sysctl kern.version > kern.version=OpenBSD 5.4-current (GENERIC.MP) #48: Sat Aug 24 20:31:41 > MDT 2013 > dera...@i386.openbsd.org:/usr/src/sys/arch/i386/compile/GENERIC.MP > > > # cat /usr/local/share/doc/pkg-readmes/xfce-4.10p0 > said > Logging out and shutting down the computer > ========================================== > If your installation supports complete shutdown, clicking on the logout > button on panel will permit you to either logout, rebooting or halt > the computer, provided you have the needed sudo credentials. > If you don't want to have to enter your password, simply add this line > to the /etc/sudoers file using visudo: > $your_username ALL=NOPASSWD: > /usr/local/lib/xfce4/session/xfsm-shutdown-helper > ========================================== > are you in operator group? ;-) $ ls -l /sbin/shutdown -r-sr-x--- 1 root operator 222416 Aug 20 00:46 /sbin/shutdown $ . hi, tomas, Shutdown in xfce not work with operator group . BTW, from terminal , user share can halt -p/ shutdown the system.