adduser failed with unknow uid=0
Denis Vlasenko
vda.linux at googlemail.com
Mon Dec 25 21:02:12 PST 2006
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