From owner-freebsd-questions@freebsd.org Wed Dec 28 03:51:41 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 19F55C94D5F for ; Wed, 28 Dec 2016 03:51:41 +0000 (UTC) (envelope-from dpchrist@holgerdanske.com) Received: from holgerdanske.com (holgerdanske.com [184.105.128.27]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "*.he.net", Issuer "GeoTrust SSL CA - G4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 0A02F1CDA for ; Wed, 28 Dec 2016 03:51:40 +0000 (UTC) (envelope-from dpchrist@holgerdanske.com) Received: from ::ffff:99.100.19.101 ([99.100.19.101]) by holgerdanske.com with ESMTPSA (AES128-SHA:SSLv3:Kx=RSA:Au=RSA:Enc=AES(128):Mac=SHA1) (SMTP-AUTH username dpchrist@holgerdanske.com, mechanism PLAIN) for ; Tue, 27 Dec 2016 19:51:37 -0800 Subject: Re: FreeBSD 11.0 i386, XDM 1.1.11_6, XFCE 4.12_1 -- How to enable GUI shutdown and restart? To: freebsd-questions@freebsd.org References: <2c0d9213-1adc-48b7-bdf6-a6b4a577d726@bananmonarki.se> From: David Christensen Message-ID: <622bd615-48b9-031a-65d8-3c7daf663cb9@holgerdanske.com> Date: Tue, 27 Dec 2016 19:51:36 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Icedove/45.5.1 MIME-Version: 1.0 In-Reply-To: <2c0d9213-1adc-48b7-bdf6-a6b4a577d726@bananmonarki.se> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit 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 03:51:41 -0000 On 12/27/16 18:22, Bernt Hansson wrote: > To be able to shutdown or reboot your system, you'll have to add a > .pkla file in /usr/local/etc/polkit-1/localauthority/50-local.d > directory. ... Source: https://forums.freebsd.org/threads/45643/ Thanks for the reply. I believe I saw that URL when STFW, but passed it by. I've created a file: 2016-12-27 19:43:22 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 And I've added my user name to the operator group: 2016-12-27 19:44:25 toor@t7400 ~ # grep operator /etc/group operator:*:5:root,dpchrist I then shut down, booted, and logged in, but the Shut Down and Restart buttons on the Xfce menu -> Log out dialog are greyed out. Any suggestions for getting shutdown and restart working in Xfce? How about XDM? David