dropbear-0.44test2 help on busybox system

Matt Johnston matt at ucc.asn.au
Mon Aug 30 11:29:20 WST 2004


On Sun, Aug 29, 2004 at 10:36:05PM +0200, Davide wrote:
> I'm trying to compile dropbear-0.44test2 for my custom
> minimal system
> (with busybox 1 rc3) to get an ssh client.
> I'm building it as an all in one executable (MULTI=1).
> The executable that is built after configure and make
> runs on the build host
> but fails on the target system (initrd and tmpfs mini
> system with busybox).
> The error I'm getting on the target is "Failed to get
> homedir"
> which as far as I can se part of the code in
> cli-kex.c.
> This is odd because getpwuid and getuid should have
> nothing to do with busybox.
>  
> I also checked that all the libries neaded by
> dropbearmulti are present on the
> target system.

Do you have /etc/passwd set up correctly? I guess perhaps the code should
be a bit more lenient - if you're specifying a username on the commandline
(ie user at host), then the username from the system isn't actually required.
I assume you're specifying a username, otherwise it should fail in
cli-runopts.c with "Unknown own user"?

A workaround for the moment is to replace

dropbear_exit("Failed to get homedir");

with

dropbear_log(LOG_WARNING, "Warning: Failed to determine homedir");
ask_to_confirm(keyblob, keybloblen);
goto out;

in cli-kex.c

Let me know how that goes.

Cheers,
Matt


More information about the Dropbear mailing list