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
==========================================

Reply via email to