From owner-freebsd-questions@FreeBSD.ORG Wed Jan 22 13:13:56 2014 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id EC155538 for ; Wed, 22 Jan 2014 13:13:56 +0000 (UTC) Received: from mail-wi0-x235.google.com (mail-wi0-x235.google.com [IPv6:2a00:1450:400c:c05::235]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 8300C1761 for ; Wed, 22 Jan 2014 13:13:56 +0000 (UTC) Received: by mail-wi0-f181.google.com with SMTP id hi8so577126wib.2 for ; Wed, 22 Jan 2014 05:13:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; bh=2y0i0rTvYzlT8Ue9kBwOibnhf436ZunfV0DzovvZ+aU=; b=OQ43wU0IEc/F9Zm4VHWeoP5xLY/9a7dV2hDpdBWk51uS6FbD8wq78k1Cf7VwZi9IHc ybkPoH4SgPgofM0SI/Byh/cDLP6wpQsXmTl+zWytgIhI3wo0Sd6PMFbRzFv8epPS7nmC Q+eadz2JA+HXQzrcrRbpVxpEwIbbBwCMVtmCHeAjCgB3s03fRw9B0eDbtFypkqwb0K3P yLDSKztIrrUaUICWQznECVUVZZMTYpCaL1z0KZe6JmaVSu64AnKxsL9bVZyZbJRzfhK5 xL7e3TmgmgSFG3IYBlVA90RcYC9wDMGwq04jdisJb+5ocDK/pMhnOdzD/VHaOc0+p1eA ddDA== X-Received: by 10.180.211.208 with SMTP id ne16mr19294306wic.21.1390396434816; Wed, 22 Jan 2014 05:13:54 -0800 (PST) Received: from kontrol.kode5.net (kontrol.kode5.net. [80.229.5.32]) by mx.google.com with ESMTPSA id j9sm14795274wjz.13.2014.01.22.05.13.52 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 22 Jan 2014 05:13:53 -0800 (PST) Message-ID: <52DFC410.60001@gmail.com> Date: Wed, 22 Jan 2014 13:13:52 +0000 From: James Griffin User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:24.0) Gecko/20100101 Thunderbird/24.2.0 MIME-Version: 1.0 To: freebsd-questions@freebsd.org Subject: Re: xfce4.10, GUI Reboot/Suspend References: <52DFBD8F.9070005@gmail.com> <20140122135704.abd0fd22.freebsd@edvax.de> In-Reply-To: <20140122135704.abd0fd22.freebsd@edvax.de> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 22 Jan 2014 13:13:57 -0000 On 01/22/14 12:57, Polytropon wrote: > 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. > > Ok, thanks for the information. I always add my user to operator and wheel groups anyway, i'll work it out I guess. I just started using xfce4 -- I've always used fvwm2 but just wanted something that doesn't require so much fiddling with configuration files.