From owner-freebsd-questions@FreeBSD.ORG Wed Jan 22 12:57:38 2014 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 3CB3618D for ; Wed, 22 Jan 2014 12:57:38 +0000 (UTC) Received: from mx01.qsc.de (mx01.qsc.de [213.148.129.14]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id F3E7E1602 for ; Wed, 22 Jan 2014 12:57:37 +0000 (UTC) Received: from r56.edvax.de (port-92-195-149-155.dynamic.qsc.de [92.195.149.155]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx01.qsc.de (Postfix) with ESMTPS id 4346B3D197; Wed, 22 Jan 2014 13:57:28 +0100 (CET) Received: from r56.edvax.de (localhost [127.0.0.1]) by r56.edvax.de (8.14.5/8.14.5) with SMTP id s0MCv40s012118; Wed, 22 Jan 2014 13:57:04 +0100 (CET) (envelope-from freebsd@edvax.de) Date: Wed, 22 Jan 2014 13:57:04 +0100 From: Polytropon To: James Griffin 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> Organization: EDVAX X-Mailer: Sylpheed 3.1.1 (GTK+ 2.24.5; i386-portbld-freebsd8.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list Reply-To: Polytropon List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 22 Jan 2014 12:57:38 -0000 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, ...