Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 15 May 2005 01:44:00 +0800
From:      Xin LI <delphij@frontfree.net>
To:        David Gurvich <david.freebsd@verizon.net>
Cc:        freebsd-current@freebsd.org
Subject:   Re: PAM breakage
Message-ID:  <20050514174400.GA88240@frontfree.net>
In-Reply-To: <200505141215.47840.david.freebsd@verizon.net>
References:  <!~!UENERkVCMDkAAQACAAAAAAAAAAAAAAAAABgAAAAAAAAA0VcX9IoJqUaXPS8MjT1PdsKAAAAQAAAAcgWdwjr8+UCYYaYPJq4uSgEAAAAA@telia.com> <0505141523488.66026@www.mmlab.cse.yzu.edu.tw> <20050514122219.GB1621@schweikhardt.net> <200505141215.47840.david.freebsd@verizon.net>

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

--jI8keyz6grp/JLjh
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=
ting=20
> a pam error.  However, I can boot into single-user mode, modify a normal =
user=20
> 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
>=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=
d:

	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.

Cheers,
--=20
Xin LI <delphij frontfree net>	http://www.delphij.net/
See complete headers for GPG key and other information.


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

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (FreeBSD)

iD8DBQFChjjg/cVsHxFZiIoRAoY7AJ4oTiGfOTSXxxnDy++1GaGaz+vLnQCfY97j
TU0pjPMUrlIfItuDlebZdr4=
=rULy
-----END PGP SIGNATURE-----

--jI8keyz6grp/JLjh--



Want to link to this message? Use this URL: <http://docs.FreeBSD.org/cgi/mid.cgi?20050514174400.GA88240>