Problems initializing daemon user cache

Schmottlach, Glenn GSchmott at
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 [mailto:havoc.pennington at] On
Behalf Of Havoc Pennington
Sent: Friday, November 07, 2008 10:08 AM
To: Schmottlach, Glenn
Cc: dbus at
Subject: Re: Problems initializing daemon user cache


On Fri, Nov 7, 2008 at 9:14 AM, Schmottlach, Glenn
<GSchmott at> wrote:
> The UID for root is of course zero (0) and in
> 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
> fails. This susequently cascades out as an error and startup fails.
> I'm missing something here, but how is the user cache supposed to be
> 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.


More information about the dbus mailing list