Avatar of Nyjus
NyjusFlag for India

asked on 

Not able to login in Linux console as any user

I have installed a Red Hat Enterprise Server AS 5.1. The same is configured with an Oracle 10g R2 Database system. I am not able to login to the console using any of the users including root user.Where as I am able to login through SSH/Telnet on remote machine, able to login on Graphics mode , when id value is set as 5 in /etc/inittab  file. Any idea on this?
LinuxLinux DistributionsLinux Networking

Avatar of undefined
Last Comment
MushyPea
Avatar of MushyPea
MushyPea

What error message are you seeing, if any?

Does /etc/nologin exist?  If so, delete it.
Avatar of d-it-lx
d-it-lx

Check your /etc/pam.d/login   file
#%PAM-1.0
auth [user_unknown=ignore success=ok ignore=ignore default=bad] pam_securetty.so
auth       include      system-auth
account    required     pam_nologin.so
account    include      system-auth
password   include      system-auth
# pam_selinux.so close should be the first session rule
session    required     pam_selinux.so close
session    required     pam_loginuid.so
session    optional     pam_console.so
# pam_selinux.so open should only be followed by sessions to be executed in the 
user context
session    required     pam_selinux.so open
session    required     pam_namespace.so
session    optional     pam_keyinit.so force revoke
session    include      system-auth
session    optional     pam_ck_connector.so

Open in new window

Avatar of Nyjus
Nyjus
Flag of India image

ASKER

Find the /etc/pam.d/login file content.
********************************************************************************************************************
#%PAM-1.0
auth [user_unknown=ignore success=ok ignore=ignore default=bad] pam_securetty.so
auth include system-auth
account required pam_nologin.so
account include system-auth
password include system-auth
# pam_selinux.so close should be the first session rule
session required pam_selinux.so close
session include system-auth
session required pam_loginuid.so
session optional pam_console.so
# pam_selinux.so open should only be followed by sessions to be executed in the user context
session required pam_selinux.so open
session optional pam_keyinit.so force revoke
session required /lib/security/pam_limits.so

#%PAM-1.0
auth [user_unknown=ignore success=ok ignore=ignore default=bad] pam_securetty.so
auth required pam_securetty.so
auth required pam_stack.so service=system-auth
auth required pam_nologin.so
account required pam_stack.so service=system-auth
password required pam_stack.so service=system-auth
session required pam_stack.so service=system-auth
session optional pam_console.so
session required pam_limits.so
******************************************************************************************************
I am able to resolve the problem by commenting the following line.
session required /lib/security/pam_limits.so

But unable to understand why this line is creating the problem since this line has been added as per the installation procedure of Oracle 10g R2
ASKER CERTIFIED SOLUTION
Avatar of MushyPea
MushyPea

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
Avatar of MushyPea
MushyPea

Ah, and try just pam_limits.so instead of /lib/security/pam_limits.so ...
Avatar of Nyjus
Nyjus
Flag of India image

ASKER

Thanks Mushy..It worked..Can you tell me the use of the same?
Avatar of MushyPea
MushyPea

Not sure what you mean; if you mean how to use the pam_limits features, have a look in /etc/security/limits.conf, my copy is fully self-documented, loads of comments to tell you how to use it.  It's used to limit users to certain amounts of CPU time, memory space, number of simultaneous logins, priority of user processes, etc.
Linux
Linux

Linux is a UNIX-like open source operating system with hundreds of distinct distributions, including: Fedora, openSUSE, Ubuntu, Debian, Slackware, Gentoo, CentOS, and Arch Linux. Linux is generally associated with web and database servers, but has become popular in many niche industries and applications.

71K
Questions
--
Followers
--
Top Experts
Get a personalized solution from industry experts
Ask the experts
Read over 600 more reviews

TRUSTED BY

IBM logoIntel logoMicrosoft logoUbisoft logoSAP logo
Qualcomm logoCitrix Systems logoWorkday logoErnst & Young logo
High performer badgeUsers love us badge
LinkedIn logoFacebook logoX logoInstagram logoTikTok logoYouTube logo