Re: PAM breakage

From: Xin LI (delphij_at_frontfree.net)
Date: 05/14/05

  • Next message: Mike Jakubik: "Re: Outgoing speed problems in -CURRENT (was: Re: SOLVED: Degraded TCP"
    Date: Sun, 15 May 2005 01:44:00 +0800
    To: David Gurvich <david.freebsd@verizon.net>
    
    
    

    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, getting
    > a pam error. However, I can boot into single-user mode, modify a normal user
    > to allow that user to su root. Then I can login using root & root password.
    > I cannot login as root at all otherwise. Likewise SSH is disabled for
    > everyone.
    >
    > I don't believe that disabling root login is bad. I still haven't figured out
    > 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 read:

            return (EINVAL);

    Change that to:

            return (0);

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

            make NO_MAN=yes all install

    And everything should back to normal.

    Cheers,

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



  • Next message: Mike Jakubik: "Re: Outgoing speed problems in -CURRENT (was: Re: SOLVED: Degraded TCP"

    Relevant Pages

    • SUMARY: Cant login as root
      ... As a result, i was not able to log in as root, neither create a new ... Asunto: RE: Can't login as root ... > console. ... > If we log as any other user everythig is ok, but we cannot either do su-. ...
      (Tru64-UNIX-Managers)
    • RE: Urgent help needed with Login problems after installation of FC1
      ... symptom trying to su back to root. ... After another minimal install, I was able to add my user and su to it and su ... I was unable to boot using the boot floppy. ... I did a minimal install and was able to login as root, ...
      (Fedora)
    • Re: BSM, SSH, and Session ID
      ... Are you logging in as root through ssh or is that just the way it is ... Sun SSH/OpenSSH should fork off before the login because the sshd ... It should always be a different session, ...
      (Focus-SUN)
    • Re: i can not log as a root
      ... >> how i can log as a user but not as a root. ... > Problem seems to be with the X session not your login but we'll try a few ... > select the OS/kernel that you boot to, ... > Looks like something is wrong with your Xsessions script or one of the ...
      (linux.redhat)
    • Re: Urgent help needed with Login problems after installation of FC1
      ... login would do anything but loop back to the Login: ... >From Gnome desktop, I was able to logout user, login root, over and ... Am able to boot from floppy. ... >After another minimal install, I was able to add my user and su to ...
      (Fedora)