[Pkg-utopia-maintainers] Bug#825956: Bug#825956: Bug#825956: policykit-1: greyed out reboot, shutdown, hibernate with 0.105-15~deb8u1, but 0.105-8 is ok

Mert Dirik mertdirik at gmail.com
Wed Jun 1 17:29:17 UTC 2016


On 01/06/2016, Michael Biebl <biebl at debian.org> wrote:
> Am 01.06.2016 um 18:04 schrieb Michael Biebl:
>> My guess it is related to
>>
>> http://anonscm.debian.org/cgit/pkg-utopia/policykit.git/tree/debian/patches/0.113/sessionmonitor-systemd-Use-sd_uid_get_state-to-check.patch
>>
>> I suspect your user is not properly marked as active.
>>
>> What's the output of
>> loginctl show-user $USER
>> and
>> loginctl show-session $XDG_SESSION_ID
>
> Further investigation shows, that logind under sysvinit, specifically
> sd_uid_get_state(), has been broken in jessie the whole time.
>
> The user is not marked as active but in state "opening".
>
> Running G_MESSAGES_DEBUG=all /usr/lib/policykit-1/polkitd --replace
> yields
>
> ** (polkitd:2627): DEBUG: Checking whether session 2 is active.
> ** (polkitd:2627): DEBUG: Session 2 has UID 1000.
> ** (polkitd:2627): DEBUG: UID 1000 has state opening.
> ** (polkitd:2627): DEBUG:  subject is in session 2 (local=1 active=0)
> ** (polkitd:2627): DEBUG:  not authorized
>

Thanks for your interest and sorry for my late reply. Here is the
requested output in case it is still needed:

$ loginctl show-user $USER
UID=1000
GID=1000
Name=mert
Timestamp=Wed 2016-06-01 20:25:30 EEST
TimestampMonotonic=51282606
RuntimePath=/run/user/1000
Slice=user-1000.slice
State=opening
IdleHint=no
IdleSinceHint=0
IdleSinceHintMonotonic=0
Linger=no

$ loginctl show-session $XDG_SESSION_ID
Id=1
Name=mert
Timestamp=Wed 2016-06-01 20:25:30 EEST
TimestampMonotonic=51287140
VTNr=7
Display=:0
Remote=no
Service=lightdm
Scope=session-1.scope
Leader=3904
Audit=1
Type=x11
Class=user
Active=yes
State=active
IdleHint=no
IdleSinceHint=0
IdleSinceHintMonotonic=0



More information about the Pkg-utopia-maintainers mailing list