From owner-freebsd-questions@freebsd.org Fri Dec 30 04:32:11 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 419E1C97831 for ; Fri, 30 Dec 2016 04:32:11 +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 306691748 for ; Fri, 30 Dec 2016 04:32:11 +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 ; Thu, 29 Dec 2016 20:32:02 -0800 From: David Christensen 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> <622bd615-48b9-031a-65d8-3c7daf663cb9@holgerdanske.com> <09d1385a-6356-b732-ddd4-ebd678c25419@bananmonarki.se> Message-ID: <507828f7-6621-15f8-f55d-0ad172857fc1@holgerdanske.com> Date: Thu, 29 Dec 2016 20:32:02 -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: <09d1385a-6356-b732-ddd4-ebd678c25419@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: Fri, 30 Dec 2016 04:32:11 -0000 On 12/27/16 23:01, Bernt Hansson wrote: > You do have dbus_enable="YES" in /etc/rc.conf? Not sure if you need > hald_enable="YES" too. Thanks for the reply. 2016-12-29 19:28:58 toor@t7400 ~ # cat /etc/rc.conf hostname="t7400" ifconfig_bfe0="DHCP" sshd_enable="YES" ntpd_enable="YES" powerd_enable="YES" # Set dumpdev to "AUTO" to enable crash dumps, "NO" to disable dumpdev="AUTO" zfs_enable="YES" 2016-12-29 19:29:04 toor@t7400 ~ # ll /etc/rc.conf.d total 9 drwxr-xr-x 2 root wheel 2 2016/09/28 20:41:10 ./ drwxr-xr-x 25 root wheel 113 2016/12/27 19:20:28 ../ Apparently, dbus is not enabled. Add a file: 2016-12-29 19:29:17 toor@t7400 ~ # echo 'dbus_enable="YES"' > /etc/rc.conf.d/dbus.conf shutdown -p, boot, login, Xfce mouse -> Log Out -> Shut Down and -> Restart are still greyed out. On 12/28/16 08:39, Polytropon wrote: > 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. Thanks for the reply. Trying the "quick fix": https://forums.freebsd.org/threads/16916/ 2016-12-29 19:33:21 toor@t7400 ~ # polkit-action --set-defaults-any org.freedesktop.hal.power-management.shutdown yes polkit-set-default-helper: needs to be setuid polkit Error: code=8: NotAuthorizedToModifyDefaults: uid 0 is not authorized to modify defaults for implicit authorization for action org.freedesktop.hal.power-management.shutdown (requires org.freedesktop.policykit.modify-defaults) David