PermitRootLogin=yes no longer lets root login

Darren Tucker dtucker at zip.com.au
Thu Jan 30 00:06:22 EST 2003


Hi All,
	While testing another patch, I found that I could not longer log in as
root, even if PermitRootLogin was yes.  It seems to be the following
code in auth_password:

$ cvs diff -r1.48 -r1.49 auth-passwd.c
[snip]
 #ifndef HAVE_CYGWIN
-       if (pw->pw_uid == 0 && options.permit_root_login != PERMIT_YES)
+       if (pw->pw_uid == 0 && options.permit_root_login !=
PERMIT_NO_PASSWD)
                return 0;
 #endif
[snip]

	Was this intentional?

		-Daz.

-- 
Darren Tucker (dtucker at zip.com.au)
GPG key 8FF4FA69 / D9A3 86E9 7EEE AF4B B2D4  37C9 C982 80C7 8FF4 FA69
    Good judgement comes with experience. Unfortunately, the experience
usually comes from bad judgement.




More information about the openssh-unix-dev mailing list