xfce4.10, GUI Reboot/Suspend

Polytropon freebsd at edvax.de
Wed Jan 22 12:57:38 UTC 2014

On Wed, 22 Jan 2014 12:46:07 +0000, James Griffin wrote:
> I've read a number of older posts found on the internet about using the 
> xfce4 menus to reboot and shutdown the system. [...] Can someone 
> using xfce4 on FreeBSD 10 explain how to do this, it shouldn't be so 
> difficult (should it?).

I've been using XFCE 3 in the past and got those things working,
even though probably different from what today's layered, inter-
connected and library-driven concepts suggest. Here's my solution,
maybe you can adapt it to your needs:

THe user who should be allowed to perform shutdown and suspend
has been placed in the "operator" and "wheel" group. The menu
entries for the actions have been created to perform the required
actions. For example

	xterm -class SHUTDOWN -fg black -bg red -e "shutdown -p now ; read DUMMY"

was associated with the "Shutdown system" menu item, and for
suspend, I think (because I can't check this at the moment)

	xterm -class SUSPEND -fg black -bg green -e "apm -z ; read DUMMY"

was configured. As you can see, this has been in ye olden times
of APM. :-)

To repeat: In order to make this work, the user has to be a
member of the "operator" group (for calling /sbin/shutdown)
and the "wheel" group" (for calling /usr/sbin/apm and also
/usr/sbin/zzz); the 2nd requirement could be omitted when
those two binaries were chown'd to root:operator.

Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...

More information about the freebsd-questions mailing list