Nonexistent user, continued
Matt Johnston
matt at ucc.asn.au
Tue Oct 25 23:27:29 WST 2005
On Tue, Oct 25, 2005 at 07:07:25AM -0700, Yan Seiner wrote:
> OK, I've checked everything I can think of; no joy. I have /dev/pts...
>
> I recompiled dropbear with debug, and it's failing in checkusername.
>
> Looking at the source, ses.authstate.pw == NULL so the check fails.
>
> Where is ses.authstate.pw loaded? scanning the source code didn't make
> anything jump out at me....
ses.authstate.pw gets loaded a few lines before
at svr-auth.c:213, from the call to getpwnam().
> I tried running strace, but when dropbear forks to handle the
> connection, the trace stops. How do I get strace to trace the child?
> strace -f -F dropbear -F -E -v didn't help.
That's strange - tracing here I see the child process fine.
To simplify things, try compiling and running (and
straceing) the attached program with
gcc -o getpwnamroot getpwnamroot.c
Running it here (Debian testing iirc), I see it looking at
/etc/nsswitch.conf - is that all that stuff set up right?
Send me the strace output if you want and I'll have a look.
Matt
More information about the Dropbear
mailing list