problem in chapter 6: entering chroot'ed environment

Shaggy Im-erbtham shaggy at
Sun Oct 8 01:41:15 PDT 2000

This is my output

uid=0(root) gid=0(root)

I also went ahead and created /etc/nsswitch.conf in the lfs partition (even
though it
appeared that /etc/group and /etc/passwd **** could **** be found). The
same multiple errors

This is a snip from the beginning

create mem    c 1 1 root:kmem 660
chown: root:kmem: invalid user
create kmem    c 1 2 root:kmem 660]
chown: root:kmem: invalid user
create null    c 1 3 root:sys 666
chown: root:sys: invalid user

This is another snip from the middle:

create fd1h1200 b 2 9 root:floppy 660
chown: root:floppy: invalid user

BTW, please look at my /lfs/root/.bash_profile if I didn't replace the xxx
and yyy values

CFLAGS="O3 -mcpu=i386 -march=i386"      # that's an alphabet "O" and
numeral "3", right?

Sorry for being a wimp but I'm getting lost in the deep woods.


>Also execute this command: id
>The output must be exactly like this:
>root:# id
>uid=0(root) gid=0(root) groups=0(root)
>If you get uid=0 gid=0 groups=0 without the name 'root' then the system is 
>having problems translating the numerics to names, so that means /etc/group 
>and /etc/passwd can't be found. If that's the case, create the 
>/etc/nsswitch.conf file. The contents can be found at the end of Chapter 6 - 
>configuring essential software.

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

More information about the lfs-dev mailing list