LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 11-19-2010, 05:08 AM   #1
pedram9
LQ Newbie
 
Registered: Nov 2010
Posts: 4

Rep: Reputation: 0
Can't log in locally (keep getting login prompt over and over) on Red Hat EL5


We've set up a Red Hat Enterprise Linux 5 server and can log into it remotely just fine (with root and other users), but if I try to log in locally with a keyboard and monitor connected to the machine, I keep being returned to the login prompt. If a login is incorrect, I get an error message, but if it is correct then the screen just blanks and shows the login prompt again.
While booting the only error message that comes up has to do with SNMPD, so I don't think it's related.

I read this post on the forum which seemed like a similar problem but it didn't help (I wasn't getting the "Module is unknown" message he was). I also read another post somewhere that said he was having the problem because the server was trying to use AD to authenticate, but I checked that and it's not the case with our server.

From what I'm told (I didn't set up the server myself) it used to work fine, but then "something" happened one day that made it do this.

Any help would be appreciated. Thanks.
 
Old 11-19-2010, 06:19 AM   #2
kbp
Senior Member
 
Registered: Aug 2009
Posts: 3,790

Rep: Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653
Try booting in single user mode and take a look at /var/log/messages and /var/log/secure for a start
 
1 members found this post helpful.
Old 11-21-2010, 01:05 AM   #3
pedram9
LQ Newbie
 
Registered: Nov 2010
Posts: 4

Original Poster
Rep: Reputation: 0
Thanks kbp.
So it looks like I actually was getting getting the "module is unknown" error, I just wasn't getting it on the screen. I had already checked /var/log/messages before posting and there was nothing that seemed interesting there, but I didn't know about /var/log/secure. I looked at that, and here is what's written to it when I try logging in locally.

Quote:
login: PAM unable to dlopen(/lib/security/pam_limits.so)
login: PAM [error: /lib/security/pam_limits.so: wrong ELF class: ELFCLASS32]
login: PAM adding faulty module: /lib/security/pam_limits.so
login: pam_unix(login:session): session opened for user root by LOGIN(uid=0)
login: Module is unknown
The machine/OS is x86_64, so if it's trying to use ELFCLASS32 I can see why it's giving that error. Any idea on how I can fix it?
 
Old 11-21-2010, 02:36 AM   #4
pedram9
LQ Newbie
 
Registered: Nov 2010
Posts: 4

Original Poster
Rep: Reputation: 0
Ah, got it!

Edited /etc/pam.d/login and changed

Quote:
session required /lib/security/pam_limits.so
to

Quote:
session required /lib64/security/pam_limits.so
and it worked. Thanks for your help.
 
Old 11-21-2010, 03:46 AM   #5
kbp
Senior Member
 
Registered: Aug 2009
Posts: 3,790

Rep: Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653
Glad you're up and running, pam references usually say '/lib/security/$ISA/<module>' which will avoid architecture issues

cheers
 
Old 07-24-2012, 08:33 AM   #6
barataaway
LQ Newbie
 
Registered: Jan 2012
Location: São Paulo / SP / Brazil
Distribution: Red Hat, Fedora, SuSe, HPUX, Solaris
Posts: 12

Rep: Reputation: Disabled
thanks

Thanks pedram9, it is a valid solution and it worked for me.

Problem: I wasn't able to login with any user. After typing a valid password and hit enter, screen flashes quickly and nothing happens.

My environment: RHEL 5.5 on a virtual machine at a ESX host

Solution: Login via single user and follow the steps of changing /etc/pam.d/login as pedram9 said before.

Also thank you kbp for the tip regarding architecture issues on pam.

Regards,
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Unable to view Network GUI in Red Hat EL5 nxerx Red Hat 2 10-04-2009 11:08 PM
Wanting to capture desktop as video on Red Hat EL5 digieditny Linux - Software 2 09-27-2009 09:40 PM
cloning red hat EL4 or El5 servers jpuretz@tk20.com Linux - Server 4 03-11-2009 01:36 PM
vsftpd login locally, but not remotely. get a login prompt though! ajkett Linux - Server 0 02-22-2007 04:18 AM
red hat command prompt at login adamuk Red Hat 3 05-21-2004 01:34 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 10:39 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration