From owner-freebsd-questions@freebsd.org Sat Dec 31 20:58:30 2016 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 2A3AFC99E79 for ; Sat, 31 Dec 2016 20:58:30 +0000 (UTC) (envelope-from wblock@wonkity.com) Received: from wonkity.com (wonkity.com [67.158.26.137]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "wonkity.com", Issuer "wonkity.com" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id D01AE1AB2 for ; Sat, 31 Dec 2016 20:58:29 +0000 (UTC) (envelope-from wblock@wonkity.com) Received: from wonkity.com (localhost [127.0.0.1]) by wonkity.com (8.15.2/8.15.2) with ESMTPS id uBVKwLgi048619 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Sat, 31 Dec 2016 13:58:22 -0700 (MST) (envelope-from wblock@wonkity.com) Received: from localhost (wblock@localhost) by wonkity.com (8.15.2/8.15.2/Submit) with ESMTP id uBVKwLUJ048616; Sat, 31 Dec 2016 13:58:21 -0700 (MST) (envelope-from wblock@wonkity.com) Date: Sat, 31 Dec 2016 13:58:21 -0700 (MST) From: Warren Block To: David Christensen cc: freebsd-questions@freebsd.org Subject: Re: FreeBSD 11.0 i386, XDM 1.1.11_6, XFCE 4.12_1 -- How to enable GUI shutdown and restart? In-Reply-To: Message-ID: References: <2c0d9213-1adc-48b7-bdf6-a6b4a577d726@bananmonarki.se> <622bd615-48b9-031a-65d8-3c7daf663cb9@holgerdanske.com> <09d1385a-6356-b732-ddd4-ebd678c25419@bananmonarki.se> <507828f7-6621-15f8-f55d-0ad172857fc1@holgerdanske.com> <20161230154841.7d2561e2.freebsd@edvax.de> <20161231163107.64b0582d.freebsd@edvax.de> User-Agent: Alpine 2.20 (BSF 67 2015-01-07) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.6.1 (wonkity.com [127.0.0.1]); Sat, 31 Dec 2016 13:58:22 -0700 (MST) X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 31 Dec 2016 20:58:30 -0000 On Sat, 31 Dec 2016, David Christensen wrote: > On 12/31/16 10:55, Warren Block wrote: >> It is very difficult to follow a dozen separate questions inside a post. > > Which demonstrates that Xfce on FreeBSD is program, not programming systems > product. Sorry, I don't know what a "programming systems product" is. >> I think one of them was about shutdown/logout/restart. This is from my >> xfce notes file. Note that hal is not required for xfce at all, and I >> do not have it installed. >> >> shutdown/reboot/logout >> as root, create >> /usr/local/etc/polkit-1/localauthority/50-local.d/org.freedesktop.consolekit.pkla >> >> >> (this is needed) >> [Restart] >> Identity=unix-group:operator >> Action=org.freedesktop.consolekit.system.restart >> ResultAny=yes >> ResultInactive=yes >> ResultActive=yes >> >> [Shutdown] >> Identity=unix-group:operator >> Action=org.freedesktop.consolekit.system.stop >> ResultAny=yes >> ResultInactive=yes >> ResultActive=yes > > 2016-12-31 11:48:30 toor@t7400 ~ > # cat > /usr/local/etc/polkit-1/localauthority/50-local.d/org.freedesktop.consolekit.pkla > [Restart] > Identity=unix-group:dpchrist > Action=org.freedesktop.consolekit.system.restart > ResultAny=yes > ResultInactive=yes > ResultActive=yes > > [Shutdown] > Identity=unix-group:dpchrist > Action=org.freedesktop.consolekit.system.stop > ResultAny=yes > ResultInactive=yes > ResultActive=yes > > > My first attempt was with "Identity=unix-group:operator". The user must be a member of the operator group.