Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 22 Jan 2014 13:57:04 +0100
From:      Polytropon <freebsd@edvax.de>
To:        James Griffin <jmzgriffin@gmail.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: xfce4.10, GUI Reboot/Suspend
Message-ID:  <20140122135704.abd0fd22.freebsd@edvax.de>
In-Reply-To: <52DFBD8F.9070005@gmail.com>
References:  <52DFBD8F.9070005@gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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.


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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20140122135704.abd0fd22.freebsd>