Problems initializing daemon user cache

Schmottlach, Glenn GSchmott at harmanbecker.com
Fri Nov 7 07:26:40 PST 2008


Thanks for the quick feedback. I think I traced down the problem. My
particular embedded target didn't have a valid /etc/group file and hence
getgrouplist() was indicating that "root" belonged to no groups. Once I
installed a valid /etc/group file it got past this failure.

-----Original Message-----
From: havoc.pennington at gmail.com [mailto:havoc.pennington at gmail.com] On
Behalf Of Havoc Pennington
Sent: Friday, November 07, 2008 10:08 AM
To: Schmottlach, Glenn
Cc: dbus at lists.freedesktop.org
Subject: Re: Problems initializing daemon user cache

Hi,

On Fri, Nov 7, 2008 at 9:14 AM, Schmottlach, Glenn
<GSchmott at harmanbecker.com> wrote:
> The UID for root is of course zero (0) and in
_dbus_user_database_lookup()
> it tries to look up the cached value for this user. Since the user
cache has
> just been created and initialized, the database is empty and the
lookup
> fails. This susequently cascades out as an error and startup fails.
Maybe
> I'm missing something here, but how is the user cache supposed to be
filled
> initially when the daemon starts up?

It calls the standard libc functions to convert a username to uid, so
that isn't working properly on your system.

You might be able to just change the config file to have "0" instead
of "root" in it, but it's probably a good idea to fix the system too.

Havoc



More information about the dbus mailing list