cannot find username for UID 0

greg scott snoop at linuxfreak.com
Sat Nov 4 20:59:05 PST 2000


following lfs-book, intel-2.4.2
on debian potato 2.2.17

got down near the end of chapter 6 section "Installing Sysklogd".
/usr/src/sysklogd-1.3-31# make install
<deleted normal output>
/usr/bin/install -o root -g root -m 644 sysklogd.8
/usr/man/man8/sysklogd.8
/usr/bin/install: invalid user `root'
make: *** [install_man] Error 1


of course at this point everything is run after doing chroot.
going back to reinstall (from fresh sources) sh-utils and shadowpwd
did not help. in fact i noticed that sh-utils failed to install su due
to insufficient access.

re-doing the creation of /etc/passwd and /etc/group didn't fix things up.


some info is given below; i'd be grateful for any help, even suggestions 
of what other info to provide in case the solution is not obvious from this info:

# export LFS=/lfs
# cd $LFS
# chroot $LFS env -i HOME=/root bash --login

bash-2.04# whoami
whoami: cannot find username for UID 0

bash-2.04# su
Sorry.
bash-2.04# 


bash-2.04# pwd
/


bash-2.04# cd
bash-2.04# pwd
/root


bash-2.04# cat ~/.bash_profile 
TERM=linux
CFLAGS="-O3 -mcpu=i686 -march=i686"
CXXFLAGS=$CFLAGS
export TERM CFLAGS CXXFLAGS


bash-2.04# cd /etc
bash-2.04# ls -l passwd group
-rw-r--r--   1 0        0              91 Nov  5 03:12 group
-rw-r--r--   1 0        0              32 Nov  5 03:42 passwd

bash-2.04# cat passwd
root:x:0:0:root:/root:/bin/bash
bash-2.04# 

bash-2.04# cat group
root:x:0:
bin:x:1:
sys:x:2:
kmem:x:3:
tty:x:4:
uucp:x:5:
daemon:x:6:
floppy:x:7:
disk:x:8:
bash-2.04# 


thank you,
greg


-- 
Unsubscribe: send email to lfs-discuss-request at linuxfromscratch.org
and put unsubscribe in the subject header of the message




More information about the lfs-dev mailing list