FreeBSD 11.0 i386, XDM 1.1.11_6, XFCE 4.12_1 -- How to enable GUI shutdown and restart?
Warren Block
wblock at wonkity.com
Sat Dec 31 20:58:30 UTC 2016
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 at 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.
More information about the freebsd-questions
mailing list