From owner-freebsd-questions@freebsd.org Wed Dec 28 16:40:04 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 9638FC9461E for ; Wed, 28 Dec 2016 16:40:04 +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 08EAE1114 for ; Wed, 28 Dec 2016 16:40:03 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mx01.qsc.de ([213.148.129.14]) by mailrelay11.qsc.de; Wed, 28 Dec 2016 17:42:36 +0100 Received: from r56.edvax.de (port-92-195-28-64.dynamic.qsc.de [92.195.28.64]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx01.qsc.de (Postfix) with ESMTPS id 676CD3CC42; Wed, 28 Dec 2016 17:39:57 +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 uBSGdu9e002063; Wed, 28 Dec 2016 17:39:56 +0100 (CET) (envelope-from freebsd@edvax.de) Date: Wed, 28 Dec 2016 17:39:56 +0100 From: Polytropon To: Bernt Hansson 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: <20161228173956.d3bf3a9f.freebsd@edvax.de> In-Reply-To: References: 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 9D79A6A355B X-cloud-security-connect: mx01.qsc.de[213.148.129.14], TLS=1, IP=213.148.129.14 X-cloud-security: scantime:.2047 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: Wed, 28 Dec 2016 16:40:04 -0000 On Wed, 28 Dec 2016 03:16:40 +0100, Bernt Hansson wrote: > On 2016-12-27 05:02, David Christensen wrote: > > > > How do I enable GUI Shutdown and Restart capabilities in both XDM and > > XFCE? > You need to write some policykit/consolekit rules, can't find them now, > and you ned HAL. Really? Isn't HAL obsoleted yet? As far as I know, it's not even part of the default packages anymore... but you're correct regarding the strange *kit XML rules. You also need to pay attention to specific group memberships. Here is some information: https://forums.freebsd.org/threads/16916/ A more genral approach (for all users) can be followed by editing /usr/local/etc/PolicyKit/PolicyKit.conf like this: This can also be found in the discussion mentioned. I remember that I did something similar required by Gnome... -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...