Bug#189309: id: unknown user name: 0
On Wed Apr 16, 2003 at 12:43:53PM -0400, Joe Nahmias wrote:
> Package: busybox-cvs
> Version: N/A; reported 2003-04-16
> Severity: grave
> Justification: renders package unusable
>
> Executing `id` returns the error message "id: unknown user name: 0" in
> the shell in debian-installer. I tested Tollef's daily d-i build from
> 2003-04-14.
Sigh. I had to download debootstrap to find the line in
question. It is not executing `id`, it is executing `id -u`.
The only way I can see for id to fail in the way you have
described is for getpwnam(3) to return NULL.
I cannot see that happening unless /etc/passwd is missing or
/etc/nsswitch.conf is missing, or if /etc/nsswitch.conf is
configured to have glibc use some alternative lookup mechanism
(i.e. LDAP), or you are missing /lib/libnss_files.so.2...
To avoid all this garbage, and avoid needing any NSS stuff, I
recommend that you enable CONFIG_USE_BB_PWD_GRP for the udebs as
was done for the boot-floppies. This will cause busybox to
bypass glibc's NSS lookup mechanisms and directly grovel around
within /etc/passwd, /etc/group, and/or /etc/shadow as needed,
thereby eliminating the need for any /lib/libnss* libraries and
/etc/nsswitch.conf.
If you rebuild busybox in this way, I betcha it'll work.
-Erik
--
Erik B. Andersen http://codepoet-consulting.com/
--This message was written using 73% post-consumer electrons--
Reply to: