UID is -1, can't login?

Mike Frysinger vapier at gentoo.org
Tue Jun 27 21:28:23 UTC 2006


On Tuesday 27 June 2006 17:16, Rob Landley wrote:
> On Tuesday 27 June 2006 4:27 pm, Joshua ChaitinPollak wrote:
> > Hi,
> >
> > I'm having a strange problem with Busybox 1.1.0 and 1.1.3. When my
> > system boots, I get the login prompt, I type my username, and then I
> > get this error:
> >
> > login: This applet requires root priviledges!
> >
> > So I hacked applets/applets.c to add this line:
> >
> > 	if (geteuid() != 0) {
> > +		fprintf(stderr, "Effective UID = %d, ruid = %d\n", geteuid(), ruid);
> > 		bb_error_msg_and_die("This applet require root priviledges!");
> > 	}
> >
> > What I get when I run this is:
> >
> > Soekris login: root
> > Effective UID = -1, ruid = -1
> > login: This applet requires root priviledges!
>
> Huh, geteuid() is _failing_.  That's nice.  Is there an errno?
>
> The man page says "these functions are always successful", which is just
> WEIRD.  What libc are you using, and what kernel version?

that is funky like a monkey ... run it through `strace` too if you can and 
post the output (compress it if it's large)
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 827 bytes
Desc: not available
Url : http://lists.busybox.net/pipermail/busybox/attachments/20060627/5267b180/attachment-0002.pgp 


More information about the busybox mailing list