:: Re: [DNG] Unknown username "polkitd…
Top Page
Delete this message
Reply to this message
Author: Ken Dibble
Date:  
To: dng
Subject: Re: [DNG] Unknown username "polkitd" in message bus configuration file
On 7/12/24 14:17, Arnt Karlsen wrote:
> On Wed, 10 Jul 2024 15:13:37 -0400, Ken wrote in message
> <8ed348cf-4563-4159-a7ba-f6ef03dca820@???>:
>
>> On 7/10/24 12:13, Arnt Karlsen wrote:
>>> On Wed, 10 Jul 2024 06:46:05 -0400, Ken wrote in message
>>> <89977d5f-ed09-44c0-a84f-521fb92c63a2@???>:
>>>
>>>> On 7/9/24 21:31, Ralph Ronnquist via Dng wrote:
>>>>> grep polkitd -r /usr/share/dbus-1 /etc/dbus-1
>>>> kdibble@anna:~$ grep polkitd -r /usr/share/dbus-1 /etc/dbus-1
>>> ..expand this with e.g. ' grep -C3 polkitd -r /usr/share/dbus-1 \
>>> /etc/dbus-1 ' to see more context.
>> grep -C3 polkitd -r /usr/share/dbus-1 \
>> /etc/dbus-1
>> /usr/share/dbus-1/system.d/org.freedesktop.PolicyKit1.conf-
>> "-//freedesktop//DTD D-BUS Bus Configuration 1.0//EN"
>> /usr/share/dbus-1/system.d/org.freedesktop.PolicyKit1.conf-
>> "http://www.freedesktop.org/standards/dbus/1.0/busconfig.dtd">
>> /usr/share/dbus-1/system.d/org.freedesktop.PolicyKit1.conf-<busconfig>
>> /usr/share/dbus-1/system.d/org.freedesktop.PolicyKit1.conf: <policy
>> user="polkitd">
>> /usr/share/dbus-1/system.d/org.freedesktop.PolicyKit1.conf- <allow
>> own="org.freedesktop.PolicyKit1"/>
>> /usr/share/dbus-1/system.d/org.freedesktop.PolicyKit1.conf- </policy>
>> /usr/share/dbus-1/system.d/org.freedesktop.PolicyKit1.conf-
>> --
>> /usr/share/dbus-1/system.d/org.freedesktop.PolicyKit1.conf- </policy>
>> /usr/share/dbus-1/system.d/org.freedesktop.PolicyKit1.conf-
>> /usr/share/dbus-1/system.d/org.freedesktop.PolicyKit1.conf- <!--
>> Allow uid 0 to send messages on the
>> org.freedesktop.PolicyKit1.AuthenticationAgent interface -->
>> /usr/share/dbus-1/system.d/org.freedesktop.PolicyKit1.conf: <policy
>> user="polkitd">
>> /usr/share/dbus-1/system.d/org.freedesktop.PolicyKit1.conf- <allow
>> send_interface="org.freedesktop.PolicyKit1.AuthenticationAgent"/>
>> /usr/share/dbus-1/system.d/org.freedesktop.PolicyKit1.conf- </policy>
>> /usr/share/dbus-1/system.d/org.freedesktop.PolicyKit1.conf-
>> --
>> /usr/share/dbus-1/system-services/org.freedesktop.PolicyKit1.service-[D-BUS
>> Service]
>> /usr/share/dbus-1/system-services/org.freedesktop.PolicyKit1.service-Name=org.freedesktop.PolicyKit1
>> /usr/share/dbus-1/system-services/org.freedesktop.PolicyKit1.service:Exec=/usr/lib/polkit-1/polkitd
>> --no-debug
>> /usr/share/dbus-1/system-services/org.freedesktop.PolicyKit1.service-User=root
>> /usr/share/dbus-1/system-services/org.freedesktop.PolicyKit1.service-SystemdService=polkit.service
>>
>>
>>>> /usr/share/dbus-1/system.d/org.freedesktop.PolicyKit1.conf:
>>>> <policy user="polkitd">
>>>> /usr/share/dbus-1/system.d/org.freedesktop.PolicyKit1.conf:
>>>> <policy user="polkitd">
>>>> /usr/share/dbus-1/system-services/org.freedesktop.PolicyKit1.service:Exec=/usr/lib/polkit-1/polkitd
>>>> --no-debug
>>> ..the results above are easily worth a 'dpkg -S $grep-result '
>>> to learn more about which more new work we have ahead...
>>>
>> I am sure that I do not understand.
> ..by "$grep-result" I meant the files your grep command outputs.
>
>> Here is my best attempt at understanding.
>>
>> If you would be kind enough to give me more specific instructions.
>>
>> $dpkg -S PolicyKit1
>> polkitd: /usr/share/dbus-1/system.d/org.freedesktop.PolicyKit1.conf
>> polkitd:
>> /usr/share/dbus-1/system-services/org.freedesktop.PolicyKit1.service
>>
>> $dpkg -S freedesktop | grep polkit
> ..yep, you lost me _right_ there. ;o)
> "dpkg -S weird-file-name-to-investigate " should tell you
> _if_ that file you investigate, belongs to a package known
> by dpkg (and possibly apt), and in that that case,
> _which_ package that file belongs in.
>
> ..did you create a file named "freedesktop"?????
>
>> polkitd: /usr/share/polkit-1/actions/org.freedesktop.policykit.policy
>> udisks2: /usr/share/polkit-1/actions/org.freedesktop.UDisks2.policy
>> geoclue-2.0:
>> /var/lib/polkit-1/localauthority/10-vendor.d/org.freedesktop.GeoClue2.pkla
>> packagekit:
>> /var/lib/polkit-1/localauthority/10-vendor.d/org.freedesktop.packagekit.pkla
>> packagekit:
>> /usr/share/polkit-1/actions/org.freedesktop.packagekit.policy colord:
>> /usr/share/polkit-1/actions/org.freedesktop.color.policy polkitd:
>> /usr/share/dbus-1/system.d/org.freedesktop.PolicyKit1.conf
>> packagekit:
>> /usr/share/polkit-1/rules.d/org.freedesktop.packagekit.rules
>> modemmanager:
>> /usr/share/polkit-1/actions/org.freedesktop.ModemManager1.policy
>> elogind: /usr/share/polkit-1/actions/org.freedesktop.login1.policy
>> polkitd:
>> /usr/share/dbus-1/system-services/org.freedesktop.PolicyKit1.service
>> geoclue-2.0:
>> /usr/share/polkit-1/rules.d/org.freedesktop.GeoClue2.rules
>>
>>
>> In general everything works, I am just trying to save errors in log
>> files for myself and everyone else.
> ..log remotely, on your own log server. Cranked up properly,
> remote logging will help prevent and diagnose a lot of bad
> shit exactly because you have the logs on your own log server.
>


Thanks for taking the time to try and help me.  I had a brain fart and
assumed

that dpkg -S wanted a package (hence freedesktop) and not a filename.


So let me try again.

grep -C3 polkitd -r /usr/share/dbus-1 /etc/dbus-1
Unique Files Are:
/usr/share/dbus-1/system.d/org.freedesktop.PolicyKit1.conf
/usr/share/dbus-1/system-services/org.freedesktop.PolicyKit1.service

SO....

$ dpkg -S /usr/share/dbus-1/system.d/org.freedesktop.PolicyKit1.conf
polkitd: /usr/share/dbus-1/system.d/org.freedesktop.PolicyKit1.conf

$ dpkg -S
/usr/share/dbus-1/system-services/org.freedesktop.PolicyKit1.service
polkitd:
/usr/share/dbus-1/system-services/org.freedesktop.PolicyKit1.service

which gives us 2 unique files
/usr/share/dbus-1/system.d/org.freedesktop.PolicyKit1.conf
/usr/share/dbus-1/system-services/org.freedesktop.PolicyKit1.service

The conf file has the user specified as polkitd
and the service file has the User specified as root.
Notice the case as well as name difference.

The .conf file has an interesting case where user is specified for
"allow own" and "allow send_interface", but no user specified for
"context default with allow send_destination", but I have no idea if
that is normal or not.

Is it possible that somehow this is a timing issue?  I have not seen the
message in question 'Unknown username "polkitd" in message bus
configuration file' for a couple days including reboots.

I ask this because I have also seen 'Unknown username "pulse" in message
bus configuration file' 3 times, but again, not for a couple days.

A simple related observation, polkit is referred to multiple ways,
polkitd, polkit-1, PolicyKit1.  I would think that with and without the
'1', and with and without the dash can't be good for clarity.

Another interesting observation is that I have multiple workstations
upgraded to Daedulus at different times, but all have current upgrades
with a different number of dbus-1 service files for things that
shouldn't be different.

Here are a few examples.

WS1 has one Thunar service file, WS2 has 2.

WS1 has one seahorse service file, WS2 has 0, neither computer uses
gnome or any password manager.

WS2 has org.freedesktop.portal.Desktop.service and
org.freedesktop.portal. Documents.service WS1 has neither.  Both files
apparently belong to xdg-desktop-portal both workstations, which both
have lxqt and xfce.

both have org.fedoraproject.Config.Printing.service

These inconsistencies make one wonder about the goings on with polkit
and dbus in general.


Thanks for your time.

Ken