[BusyBox] OpenSSH on BusyBox

Vladimir N. Oleynik dzo at simtreas.ru
Wed Dec 18 08:08:03 UTC 2002


Nick,

> > Nick,
> >
> > > On Wed, 18 Dec 2002, Vladimir N. Oleynik wrote:
> > > > You don`t set root user to /etc/passwd ?
> > > Here is fragment of code where I dropped out
> > > openssh-3.5p1/ssh.c:
> > > 232:    original_real_uid = getuid();
> > >         original_effective_uid = geteuid();
> > > [...]
> > > 253:    /* Get user data. */
> > >         pw = getpwuid(original_real_uid);
> > >         if (!pw) {
> > >                 log("You don't exist, go away!");
> > >                 exit(1);
> > >         }
> > > [...]
> > >
> > > All looks good.
> > > 8-S
> > > Any ideas?
> > require libnss* or busybox/lib_pw functions.
> 
> /lib# ls -1 libnss*
> libnss_dns-2.2.5.so*
> libnss_dns.so.2@
> libnss_files-2.2.5.so*
> libnss_files.so.2@

On target presend?
/etc/nsswitch.conf on target presend?
 
> and IADM all getXXent is inside the libnss_files-2.2.5.so.
> Also see `ldd ssh' output in one of my prev msgs.

ldd can`t show dynamic loaded library in runtime
 
> About busybox/lib_pw: here ssh is not a busybox applet, and
> I don't known how to use  busybox/lib_pw in the standalone ssh.

You can added for ssh Makefile 
busybox/libpwdgrp/libpwdgrp.a
for linking procedure.


--w
vodz



More information about the busybox mailing list