LinuxQuestions.org
Review your favorite Linux distribution.
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 02-20-2012, 08:15 AM   #1
therobust
LQ Newbie
 
Registered: Feb 2012
Posts: 5

Rep: Reputation: Disabled
Unhappy centos 5.7. throws me out once login root


Hi geeks,

i am stuck in a situation and cant login. I am using elastix for my office and i have installed it only a few days back... i updated yum but now when i try to login, it throws me out immediately to login prompt again.
any help please?
 
Old 02-20-2012, 11:12 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974
Can you get into single user mode? At the boot prompt (presuming this is grub) hit e to edit the kernel line and add a "1" to it, then b to boot. that should give you direct root access outside of an authentication mechanism, check /var/log/messages and /var/log/secure for info about what is going on.
 
Old 02-20-2012, 01:23 PM   #3
therobust
LQ Newbie
 
Registered: Feb 2012
Posts: 5

Original Poster
Rep: Reputation: Disabled
kernel panic-not syncing when i add 1 to the line

hello,

i tried to add 1 to the kernel line and when i hit b to boot, it doesnt even give log on prompt but halts before that.
actually the issue is that i get logged in as root but it logs out immediately after that...
 
Old 02-20-2012, 04:34 PM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974
what happens on the boot up right before it halts?

It sounds like your login shell may be corrupted?
 
Old 02-21-2012, 01:33 AM   #5
therobust
LQ Newbie
 
Registered: Feb 2012
Posts: 5

Original Poster
Rep: Reputation: Disabled
it halts only after adding 1 to kernel line

after i edit kernel line n add 1 to it it stoops on boot at:
kernel panic-not syncing

otherwise it takes me to login prompt, accepts login credentials, logs in for a less than a second n then logs out automatically
 
Old 02-21-2012, 05:14 AM   #6
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974
OK, well I would use a boot cd, probably somethign on the installation CD / DVD you installed it from or one of many others out there, to get onto the filesystem and reach the log files.
 
Old 02-24-2012, 09:16 AM   #7
therobust
LQ Newbie
 
Registered: Feb 2012
Posts: 5

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by acid_kewpie View Post
OK, well I would use a boot cd, probably somethign on the installation CD / DVD you installed it from or one of many others out there, to get onto the filesystem and reach the log files.
Thanks for the suggestion. Any idea how would i reach to filesystem once booting from cd/dvd?

Regards!
 
  


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
[SOLVED] How to login as root to GUI of CentOS 5.3? k_oudom Linux - Software 6 09-14-2009 09:03 AM
wicd asks for a root pass and X throws an error. ohadbasan Arch 1 08-18-2009 03:39 AM
telnet root login possible in FC2/centos 5 i386 takuttamkumar Linux - Security 1 11-18-2008 12:47 PM
Cannot login to CentOS system even as root...disk failure? sneakyimp Linux - Newbie 10 04-12-2008 12:34 AM


All times are GMT -5. The time now is 06:37 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