LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-15-2013, 09:38 PM   #1
pyroman59
Member
 
Registered: Jul 2005
Posts: 64

Rep: Reputation: 15
RHEL 6.2 console login as root fails


Hi - I have a new RHEL 6.2 sys I loaded and then ran through several OS hardening routines per CISecurity guidelines. Mainly the hardening was permissions changes... so, I then reboot and it came up with the login banner. I entered root and the password, then the banner goes away and about 5-10 seconds later, it appears again. I tried fail-safe login also. Nogo. Same thing. Any ideas of what would cause this behavior? Also, how can I mount the drive to fix, even after I find out what to fix?
 
Old 10-15-2013, 11:15 PM   #2
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,284

Rep: Reputation: 371Reputation: 371Reputation: 371Reputation: 371
Maybe root doesn't have a valuid shell entry in /etc/passwd or that one of the changes you madfe somehow denied root's ability to run its login shell or told the system to deny root logins? Can you login to another account and su to root? If not, try rebooting into single user mdoe (there are numerous guides on the web for how to do this) and check /var/log/secure to see if you can figure out why root logins are beign denied.
 
Old 10-16-2013, 12:24 AM   #3
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,238

Rep: Reputation: 2522Reputation: 2522Reputation: 2522Reputation: 2522Reputation: 2522Reputation: 2522Reputation: 2522Reputation: 2522Reputation: 2522Reputation: 2522Reputation: 2522
Quote:
Mainly the hardening was permissions changes..
You made a typo maybe ?
or a SELinux context problem
if the system folders have the Wrong permissions SE will STOP the login

or SE might stop the boot if something like /etc is 777

pop in the install dvd and run it is "Rescue mode" and after you run
Code:
chroot /mnt/sysimage
go over what you did and double check it .
 
Old 10-16-2013, 02:45 AM   #4
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,361
Blog Entries: 55

Rep: Reputation: 3547Reputation: 3547Reputation: 3547Reputation: 3547Reputation: 3547Reputation: 3547Reputation: 3547Reputation: 3547Reputation: 3547Reputation: 3547Reputation: 3547
Quote:
Originally Posted by pyroman59 View Post
Any ideas of what would cause this behavior?
Apart from the fact that you should not login as root anyway: boot into runlevel 1 (or else use a Live CD) and check the logs and login records for clues.
 
Old 10-16-2013, 10:38 PM   #5
pyroman59
Member
 
Registered: Jul 2005
Posts: 64

Original Poster
Rep: Reputation: 15
Hi and thanks to:
btmiller
John VV
unSpawn

I booted from the rescue CD and got in and looked around. I found out that the nosuid option was set for / in fstab by mistake... I took that out and all was OK. Ugh.

Thank you very much.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Su to root works fine @ console, fails in x (cant login at all when using xdm) lionsong Slackware 5 09-06-2009 07:22 PM
RHEL 5 and X-Win32 remote login appears on console?? thepeleda Linux - Newbie 1 02-12-2009 09:16 PM
users cant able to login in any console,but root can login. skumar.v Linux - Security 1 04-19-2008 07:57 AM
console login hangs RHEL 3 darrenprog Linux - General 7 06-11-2007 05:43 PM
RHEL wouldn't login at console after kernel upgrade bigstinger Linux - General 4 09-13-2006 08:45 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:22 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration