﻿id,summary,reporter,owner,description,type,status,component,version,resolution,keywords,cc,guest,host
13854,RHEL6: Error: ConsoleKit: unable to lookup user name for uid=0,David Charlap,,"I am running VirtualBox 4.3.22 r98236.  I have seven different Linux VMs configured (not all running at once) with the following distros installed:
* RHEL 5 (i686 and x86_64)
* RHEL 6 (i686 and x86_64)
* RHEL 7 (x86_64)
* Fedora 21 (x86_64)
* Debian 7.8/wheezy (x86_64)

The Fedora and Debian distros run GUIs and have GUI-based login.  The five RHEL distros have no GUI configured and use console-login only.

The host OS is Debian 7.8/wheelzy (x86_64).

All are up to date with the latest packages from their respective distributions.  All seven VMs have the guest additions bundled with VirtualBox installed.

On the two RHEL 6 VMs (and only those two), after logging in, I see the following message (with incrementing timestamps) appear every 5 seconds:

{{{
00:01:25.289276 vminfo   Error: ConsoleKit: unable to lookup user name for uid=###
}}}

Where ### is the uid for whatever account I logged in as.  I see these messages for both unprivileged accounts and for root.

Stopping the vboxadd-service makes the messages go away.

I downloaded and installed the latest guest addition ISO (4.3.23-98282), but it did not solve the problem.

Looking at the source code ( http://www.virtualbox.org/svn/vbox/trunk/src/VBox/Additions/common/VBoxService/VBoxServiceVMInfo.cpp ), it appears that the code in question is calling getpwuid() using the user ID.  I wrote a test program and the call succeeds on this platform.

The problem is with what the vminfo code is doing with the result.  It is comparing the returned UID with 1000 (a hard-coded constant) and reports failure if it is less.  Root is 0 and my non-privileged user is 501.  So the user is not added to the ConsoleKit list and a message is generated.  ''And the code repeats every 5 seconds!''

But this is probably not the entire problem.  My RHEL5 and RHEL7 boxes don't exhibit this problem.  They show no problems for root (UID 0) or for UID 500 (the non-privileged user created by RHEL5 at setup.)",defect,closed,guest additions,VirtualBox 4.3.22,fixed,,,Linux,Linux
