From owner-freebsd-current@FreeBSD.ORG Sat May 14 17:44:13 2005 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 97DD716A4CE for ; Sat, 14 May 2005 17:44:13 +0000 (GMT) Received: from tarsier.geekcn.org (tarsier.geekcn.org [210.51.165.229]) by mx1.FreeBSD.org (Postfix) with ESMTP id 29D8443D7C for ; Sat, 14 May 2005 17:44:13 +0000 (GMT) (envelope-from delphij@frontfree.net) Received: from beastie.frontfree.net (unknown [219.239.99.7]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by tarsier.geekcn.org (Postfix) with ESMTP id EEA32EB0979 for ; Sun, 15 May 2005 01:44:09 +0800 (CST) Received: from localhost (localhost.frontfree.net [127.0.0.1]) by beastie.frontfree.net (Postfix) with ESMTP id C1C07134E60; Sun, 15 May 2005 01:44:07 +0800 (CST) Received: from beastie.frontfree.net ([127.0.0.1]) by localhost (beastie.frontfree.net [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 88143-01; Sun, 15 May 2005 01:44:01 +0800 (CST) Received: by beastie.frontfree.net (Postfix, from userid 1001) id 55E2B130F42; Sun, 15 May 2005 01:44:00 +0800 (CST) Date: Sun, 15 May 2005 01:44:00 +0800 From: Xin LI To: David Gurvich Message-ID: <20050514174400.GA88240@frontfree.net> References: <0505141523488.66026@www.mmlab.cse.yzu.edu.tw> <20050514122219.GB1621@schweikhardt.net> <200505141215.47840.david.freebsd@verizon.net> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="jI8keyz6grp/JLjh" Content-Disposition: inline In-Reply-To: <200505141215.47840.david.freebsd@verizon.net> User-Agent: Mutt/1.4.2.1i X-GPG-key-ID/Fingerprint: 0xCAEEB8C0 / 43B8 B703 B8DD 0231 B333 DC28 39FB 93A0 CAEE B8C0 X-GPG-Public-Key: http://www.delphij.net/delphij.asc X-Operating-System: FreeBSD beastie.frontfree.net 5.3-RELEASE-p2 FreeBSD 5.3-RELEASE-p2 #15: Wed Dec 15 10:43:16 CST 2004 delphij@beastie.frontfree.net:/usr/obj/usr/src/sys/BEASTIE i386 X-URL: http://www.delphij.net X-By: delphij@beastie.frontfree.net X-Location: Beijing, China X-Virus-Scanned: by amavisd-new at frontfree.net cc: freebsd-current@freebsd.org Subject: Re: PAM breakage X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 14 May 2005 17:44:13 -0000 --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 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--