Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 31 Dec 2016 22:17:45 +0100
From:      Polytropon <freebsd@edvax.de>
To:        Warren Block <wblock@wonkity.com>
Cc:        David Christensen <dpchrist@holgerdanske.com>, 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: <alpine.BSF.2.20.1612311357120.47278@wonkity.com>
References:  <e721fc89-46b0-ea8c-9ed3-ad6c0df58c29@holgerdanske.com> <e0b1bd9a-dbe0-31cb-ee70-0cfe87da694b@bananmonarki.se> <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> <e4100f12-b37d-3e0b-2d5e-5cb65f5c49a5@bananmonarki.se> <20161230154841.7d2561e2.freebsd@edvax.de> <bca9e1b0-f298-e5da-d583-134ad0bd18b7@holgerdanske.com> <20161231163107.64b0582d.freebsd@edvax.de> <a0e0390a-55e2-9ad0-3e74-26f25ae5309f@holgerdanske.com> <alpine.BSF.2.20.1612311153040.94586@wonkity.com> <c4a46a36-8d0b-6ba8-6afa-826443fe383d@holgerdanske.com> <alpine.BSF.2.20.1612311357120.47278@wonkity.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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, ...



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20161231221745.9f68fc6b.freebsd>