From owner-freebsd-questions@freebsd.org Sat Dec 31 21:17:50 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 DA394C98624 for ; Sat, 31 Dec 2016 21:17:50 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mailrelay11.qsc.de (mailrelay11.qsc.de [212.99.187.252]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "*.antispameurope.com", Issuer "TeleSec ServerPass DE-2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 6189E166D for ; Sat, 31 Dec 2016 21:17:49 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mx01.qsc.de ([213.148.129.14]) by mailrelay11.qsc.de; Sat, 31 Dec 2016 22:20:24 +0100 Received: from r56.edvax.de (port-92-195-83-137.dynamic.qsc.de [92.195.83.137]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx01.qsc.de (Postfix) with ESMTPS id F07393CC3F; Sat, 31 Dec 2016 22:17:45 +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 uBVLHjXD002022; Sat, 31 Dec 2016 22:17:45 +0100 (CET) (envelope-from freebsd@edvax.de) Date: Sat, 31 Dec 2016 22:17:45 +0100 From: Polytropon To: Warren Block Cc: David Christensen , 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? Message-Id: <20161231221745.9f68fc6b.freebsd@edvax.de> In-Reply-To: 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> Reply-To: Polytropon 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 X-cloud-security-sender: freebsd@edvax.de X-cloud-security-recipient: freebsd-questions@freebsd.org X-cloud-security-Virusscan: CLEAN X-cloud-security-disclaimer: This E-Mail was scanned by E-Mailservice on mailrelay11.qsc.de with BDDE56A355B X-cloud-security-connect: mx01.qsc.de[213.148.129.14], TLS=1, IP=213.148.129.14 X-cloud-security: scantime:.2369 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 21:17:50 -0000 On Sat, 31 Dec 2016 13:58:21 -0700 (MST), Warren Block wrote: > 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. To clarify: The rule in that file tests for group membership. Even if your user is a member of your user's group, it does not imply that this "magically" permits him to shut down the system. The user must be a member of a group that is allowed to shut down the system (usually wheel or operator), and the rule needs to test for _that_ group. At least that's how I understand this mechanism... -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...