Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 15 May 2005 01:44:00 +0800
From:      Xin LI <>
To:        David Gurvich <>
Subject:   Re: PAM breakage
Message-ID:  <>
In-Reply-To: <>
References:  <!~!> <> <> <>

Next in thread | Previous in thread | Raw E-Mail | Index | Archive | Help

Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Sat, May 14, 2005 at 12:15:47PM -0400, David Gurvich wrote:
> I have been having a similar problem.  I can no longer login as root, get=
> a pam error.  However, I can boot into single-user mode, modify a normal =
> to allow that user to su root.  Then I can login using root & root passwo=
rd. =20
> I cannot login as root at all otherwise.  Likewise SSH is disabled for=20
> everyone.=20
> I don't believe that disabling root login is bad.  I still haven't figure=
d out=20
> how to enable ssh.

Sorry, that's my fault.  I have introduced a bug into libc which has caused
PAM breakage.  Try to go single user, and mount /usr, / as read-write,
edit src/lib/libc/gen/ttyname.c, and change line 87 of it, which should rea=

	return (EINVAL);

Change that to:

	return (0);

Then go to /usr/src/lib/libc and run:

	make NO_MAN=3Dyes all install

And everything should back to normal.

Xin LI <delphij frontfree net>
See complete headers for GPG key and other information.

Content-Type: application/pgp-signature
Content-Disposition: inline

Version: GnuPG v1.4.0 (FreeBSD)



Want to link to this message? Use this URL: <>