LFS/Busybox and user/group problem !

Spahn, Daniel dspahn at cuh2a.com
Thu Sep 20 05:06:45 PDT 2007

-----Original Message-----
From: lfs-support-bounces at linuxfromscratch.org
[mailto:lfs-support-bounces at linuxfromscratch.org] On Behalf Of JBLinux
Sent: Thursday, September 20, 2007 4:44 AM
To: lfs-support at linuxfromscratch.org
Subject: LFS/Busybox and user/group problem !

Hi all.
   I'm building a LiveCD based on kernel 2.6.20, busybox 1.6.0 and other
tools that I need.
   My first step was to build a basic LiveCD : a bootable CD using Grub,
the kernel 2.6 and busybox.
   With busybox 2.6.0 all work great EXCEPT a problem using user/group.
The following commands don't work correctly :
    # touch toto
    # chgrp bin toto
    chgrp: unknown group name: bin
   But the grou bin exist in /etc/group :
   # more /etc/group
   I've look around my config fils in /etc (/etc/passwd, /etc/group,
/etc/shadow and /etc/nsswitch.conf) but all seem ok !
   Content is above :
     # more /etc/group
     # more /etc/shadow
     # more /etc/passwd
   I've tried with the recent 1.7.1 busybox and it seem to work (the
chgrp work correctly).
   BUT !!!!!!!!!!!!!!!!!!!!!!!!!!!!!
   I've the RPM tool in my binaries (I don't use the busybox rpm version
coz I need all option of RPM) and here, for a package that need group
bin, RPM say me that group bin doesn't exist !!!!!!!!!!!!!
   Damned !
   # rpm -Uvh --nodeps expat-2.0.0-1.i386.rpm
   warning: group bin doesn't exist  - using root
   Anybody have an idea where I can look ?
   I'm unable to find a way to solve this !
   For a complementary information, after my boot process, I'm directly
conected in root account. A problem of initab that can imply the rest ?

Thx for your help !

Just a thought, but are you booted or chrooted into the system whose
/etc/group you are viewing? Has your environment been sourced? How was
bin added to /etc/groups?

More information about the lfs-support mailing list