Find the answer to your Linux question:
Results 1 to 6 of 6
I am unable to log into the console of one my linux servers. When I type my username/pw at the prompt, it goes right back to the login prompt. It ...
  1. #1
    Just Joined!
    Join Date
    Apr 2011
    Posts
    3

    [SOLVED] Question/Help - Unable to log into console

    I am unable to log into the console of one my linux servers. When I type my username/pw at the prompt, it goes right back to the login prompt. It doesn't even give me an access denied message (like i typed the wrong pw).

    I have no issues sshing to the box w/ the same username/pw.

    Am I missing something in my /etc/inittab or is there another place where you can disable a console login?

    FYI..Linux noob here..

    Any direction would be greatly appreciated!

  2. #2
    Linux Newbie Ziplock's Avatar
    Join Date
    Jan 2009
    Location
    Adelaide
    Posts
    169
    Hi there,

    I am going to assume that you can log in as root on the host in question, otherwise the following won't be possible.

    Check /var/log/messages for indications of the problem.
    Code:
    less /var/log/messages
    Look for refences to the username in question.

    You can also see if PAM is having an issue:
    Code:
    pam_tally
    or
    Code:
    pam_tally2
    if you have a 64 bit operating system installed.

    If you are authenticating over a network, other issues could be causing this. Try the above first.

  3. #3
    Just Joined!
    Join Date
    Apr 2011
    Posts
    3
    Ziplock -

    Thanks for the reponse!

    I check /var/log/messages and didn't see anything related to my ID and a login. I also did a tail -f on it while i tried to log into the console and nothing popped.

    I ran the pam_tally command, and this was the output return

    User admjfons (3000) has 3

    The command pam_tally2 just came back to the prompt w/o output.

    Couple things to note...
    - If I type a bad password on the console, it comes back w/ "login incorrect" and the pam_tally output increased by 1.

    - I am logging onto the console via ILO

    - I have recently built 4 linux servers w/ the exact same installation disk. Once RHEL 5 was installed, I made changes to /etc/login.defs, /etc/ssh/sshd_config, /etc/inittab, /etc/pam.d/login, & /etc/pam.d/system-auth.

    - Out of the 4 servers built, I am only able to access the server (from the console) on 1 of them. I am reviewing all the updated files now looking for a typo or something like that.

    Any other ideas?

    Thanks in advance.

  4. #4
    Just Joined!
    Join Date
    Apr 2011
    Posts
    3
    Ziplock -

    Found the problem. In /etc/pam.d/login the following line was added incorrectly. I don't think the path needs to be there.

    # The below line was added as requirement for RAC on 21Mar11
    session required /lib/security/pam_limits.so

    I changed it to this and was able to log into the console.

    # The below line was added as requirement for RAC on 21Mar11
    session required pam_limits.so

  5. #5
    Linux Newbie Ziplock's Avatar
    Join Date
    Jan 2009
    Location
    Adelaide
    Posts
    169
    Glad you found the answer! Thanks for letting us know too.

  6. #6
    Just Joined!
    Join Date
    Mar 2011
    Posts
    1
    Another thing you can do is reboot the server and during the grub boot, add an option to boot in single user mode. This will bypass any login and drop you to a command prompt where you may be able to correct the issue.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...