unable to login to the console from runlevel 3

Support for the other architectures (X86_64, IA-64, and PowerPC)
alan2803
Posts: 4
Joined: 2008/09/16 19:53:43

unable to login to the console from runlevel 3

Postby alan2803 » 2008/09/16 20:23:04

Hi,
When I switch to runlevel 3 (change the line in inittab) and reboot without X - I cant login
to any user from the console. It keeps returning the login prompt again. No errors are
returned.
I can ssh in from a remote machine (as any user) fine.
I have console access from runlevel 3 on x86 bit not on x86-64.
I have all the updates.
Alan

michaelnel
Posts: 1478
Joined: 2006/05/29 16:50:11
Location: San Francisco, CA

Re: unable to login to the console from runlevel 3

Postby michaelnel » 2008/09/16 22:00:01

Check /var/log/secure and /var/log/messages for errors.

Can root log in?

What if you are in runlevel 5 and don't change inittab at all, but instead issue the command "telinit 3" from a terminal session as root? Can you log into a user account then?

Are you using only local authentication (/etc/passwd), or some network auth scheme like ldap?

alan2803
Posts: 4
Joined: 2008/09/16 19:53:43

Re: unable to login to the console from runlevel 3

Postby alan2803 » 2008/09/17 00:07:11

Hi - thanks for replying.

The user 'root' is not able to log in.
Not using ldap or anything like that.
I will try your telinit 3 command and post what happens.
Ill try what I did earlier again and check the logs you suggest.

Thanks
Alan

alan2803
Posts: 4
Joined: 2008/09/16 19:53:43

Re: unable to login to the console from runlevel 3

Postby alan2803 » 2008/09/17 15:43:38

Hi,
There is errors in /var/log/secure - I think this is the problem -

Sep 17 08:35:31 devora05 login: PAM unable to dlopen(/lib/security/pam_limits.so)
Sep 17 08:35:31 devora05 login: PAM [error: /lib/security/pam_limits.so: wrong ELF class: ELFCLASS32]
Sep 17 08:35:31 devora05 login: PAM adding faulty module: /lib/security/pam_limits.so
Sep 17 08:35:35 devora05 login: pam_unix(login:session): session opened for user root by LOGIN(uid=0)
Sep 17 08:35:35 devora05 login: Module is unknown
Sep 17 08:35:37 devora05 login: PAM unable to dlopen(/lib/security/pam_limits.so)
Sep 17 08:35:37 devora05 login: PAM [error: /lib/security/pam_limits.so: wrong ELF class: ELFCLASS32]
Sep 17 08:35:37 devora05 login: PAM adding faulty module: /lib/security/pam_limits.so
Sep 17 08:35:41 devora05 login: pam_unix(login:session): session opened for user root by LOGIN(uid=0)
Sep 17 08:35:41 devora05 login: Module is unknown
Sep 17 08:35:44 devora05 login: PAM unable to dlopen(/lib/security/pam_limits.so)
Sep 17 08:35:44 devora05 login: PAM [error: /lib/security/pam_limits.so: wrong ELF class: ELFCLASS32]
Sep 17 08:35:44 devora05 login: PAM adding faulty module: /lib/security/pam_limits.so
Sep 17 08:35:46 devora05 login: pam_unix(login:session): session opened for user oracle by LOGIN(uid=0)
Sep 17 08:35:46 devora05 login: Module is unknown
Sep 17 08:35:53 devora05 login: PAM unable to dlopen(/lib/security/pam_limits.so)
Sep 17 08:35:53 devora05 login: PAM [error: /lib/security/pam_limits.so: wrong ELF class: ELFCLASS32]
Sep 17 08:35:53 devora05 login: PAM adding faulty module: /lib/security/pam_limits.so
Sep 17 08:35:56 devora05 login: pam_unix(login:session): session opened for user oracle by LOGIN(uid=0)
Sep 17 08:35:56 devora05 login: Module is unknown


Thanks
Alan

michaelnel
Posts: 1478
Joined: 2006/05/29 16:50:11
Location: San Francisco, CA

Re: unable to login to the console from runlevel 3

Postby michaelnel » 2008/09/17 17:40:59

According to "yum provides pam_limits.so", it is provided by the "pam.i386" package. Is that installed on your system?

What does "ls -l /lib/security" show?

There are both pam.x86_64 and pam.i386. Both are installed on my CentOS 5.2 server. Are they both installed on yours ("yum list pam" will show you)?

alan2803
Posts: 4
Joined: 2008/09/16 19:53:43

Re: unable to login to the console from runlevel 3

Postby alan2803 » 2008/09/17 18:37:52

I found the problem - this is due to an error in the oracle 11g installation docs.

It says you add this entry into /etc/pam.d/login

session required /lib/security/pam_limits.so

When I changed the line to :

session required /lib64/security/pam_limits.so

I was able to log into the console at runlevel 3.

So we can blame Oracle again !!!

Thanks for your help !

michaelnel
Posts: 1478
Joined: 2006/05/29 16:50:11
Location: San Francisco, CA

Re: unable to login to the console from runlevel 3

Postby michaelnel » 2008/09/17 19:03:28

Thanks for the feedback. It's always good for us to know what the resolution of the problem was, and sometimes folks forget to let us know.

Glad you got it working!

babinlonston
Posts: 6
Joined: 2012/08/17 05:42:27
Location: India
Contact:

Re: unable to login to the console from runlevel 3

Postby babinlonston » 2017/04/22 10:49:19

Faced the same issue after doing a yum update from Oracle 6.8 to 6.9

The solution still applies for Oracle Linux 6.9 and variants.

Thank a lot.
__Babin Lonston__