I can do that if in the checkusername I comment the following check.<br>I'm not sure if it's a better way; I wonder if it's worth using an extra option (i.e. permit_empty_passwd)<br>like ssh does.<br><br> /* check for an empty password */
<br>#if 0<br> if (ses.authstate.pw->pw_passwd[0] == '\0') {<br> TRACE(("leave checkusername: empty pword"))<br> dropbear_log(LOG_WARNING, "user '%s' has blank password, rejected",
<br> ses.authstate.printableuser);<br> send_msg_userauth_failure(0, 1);<br> return DROPBEAR_FAILURE;<br> }<br>#endif<br> TRACE(("shell is %s",
ses.authstate.pw->pw_shell))<br><br><br><div><span class="gmail_quote">On 08/08/2007, <b class="gmail_sendername">Giuseppe Cavallaro</b> <<a href="mailto:peppe.cavallaro@gmail.com">peppe.cavallaro@gmail.com</a>> wrote:
</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi Matt,<br>It works fine if I set root:R7gIX4dJJcCFw:... in passwd file.<br>So I'd like to have the same scenario but using root::... in passwd.
<br>Is it possible?<br><br>Thanks a lot for your excellent support,<br><span class="sg">Giuseppe
</span><div><span class="e" id="q_11444c3942b5a1fb_2"><br><br><div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br><br>There's a hardcoded check in checkusername() that won't
<br>allow an empty password crypt since that's a common
<br>misconfiguration. If the user has an OK entry in /etc/passwd<br>though, you can make Dropbear skip auth fairly easily, see<br>the patch below.<br><br>Matt</blockquote></div><br>
</span></div></blockquote></div><br>