adduser failed with unknow uid=0
he-guo at mediaring.com
he-guo at mediaring.com
Mon Dec 25 22:20:34 PST 2006
Hi Denis,
you are right. but I can not figure out why like that.
all user account related commands get problem with 1.30 version.
Thanks a lot for your help
----- Original Message -----
From: "Denis Vlasenko" <vda.linux at googlemail.com>
To: <busybox at busybox.net>
Cc: <he-guo at mediaring.com>
Sent: Tuesday, December 26, 2006 1:02 PM
Subject: Re: adduser failed with unknow uid=0
> On Tuesday 26 December 2006 04:25, he-guo at mediaring.com wrote:
> > Hi all,
> >
> > I tested busybox-1.30, i found adduser failed with unknown uid=0.
> >
> > adduser test
> > passwd: unknown uid 0
> >
> > i tested it using busybox internal function and glibc function,
> > all failed with the same reason .
>
> Well, the only place where I see "unknown uid" string is here:
>
> int vlock_main(int argc, char **argv)
> {
> sigset_t sig;
> struct sigaction sa;
> struct vt_mode vtm;
> struct termios term;
> uid_t uid = getuid();
>
> pw = getpwuid(uid);
> if (pw == NULL)
> bb_error_msg_and_die("unknown uid %d", uid);
>
> But adduser surely doesn't call vlock!
> It calls passwd. Maybe it is printed here?
>
> int passwd_main(int argc, char **argv)
> {
> ...
> pw = getpwnam(name);
> if (!pw) bb_error_msg_and_die("unknown user %s", name);
>
> Can you check whaich of these messages is printed?
> --
> vda
More information about the busybox
mailing list