Busybox and user/group problem
Tito
farmatito at tiscali.it
Wed Sep 19 19:36:09 UTC 2007
On Wednesday 19 September 2007 18:08:53 Jack B wrote:
>
> Fuckink hotmail webmail !!!
>
> Is it better ???
> If not ... I'll use another account ... and sorry for the trouble !
>
> For information, /etc/gshadow is set like u for bin
>
> Repost of the message :
>
> 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
> root::0:root
> bin::1:
> rpm::2:
>
> 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
> root::0:root
> bin::1:
> rpm::2:
>
> # more /etc/shadow
> root:?????:12439:0:99999:7:::
>
> # more /etc/passwd
> root:x:0:0:root:/root:/bin/bash
>
> 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 ?
busybox/coreutils/chgrp.c
busybox/coreutils/chown.c
busybox/libpwdgrp/uidgid_get.c
Maybe this change fixed it for newer versions than yours:
http://www.busybox.net/cgi-bin/viewcvs.cgi/trunk/busybox/coreutils/chown.c?rev=19557&view=log
Revision 17145 - (view) (download) (as text) - [select for diffs]
Modified Wed Jan 3 12:07:06 2007 PST (8 months, 2 weeks ago) by vda
File length: 2952 byte(s)
Diff to previous 17095 (colored)
chown: fix handling of "user.group" notation
> It seem that the glue between the system and user and group config file doesn't work !
>
> All ideas are welcome !!!!!!!!
>
Ciao,
Tito
More information about the busybox
mailing list