LinuxQuestions.org
Visit Jeremy's Blog.
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 03-05-2010, 10:59 AM   #1
wasamzy
Member
 
Registered: Apr 2009
Location: Ghana Accra
Posts: 64

Rep: Reputation: 15
Can't log into Centos


I have a centos server running nagios for monitoring. I restarted the machine, it is actually a console server anyway. After getting to the login screen, I typed in my user name but it never propt for my password. I can't even ssh into the system.

So I tried to use the installation cd and enter into rescue mode where I typed chroot and was able to enter into the root environment.
I was able to configure a network interface in the rescue mode and can ping the machine at this point, though can ssh still.

In the root environment, I tried running couple commands.
like try to restart the sshd.
When I typed /etc/init.d/sshd restart, I got an error saying:

766 segmentation fault.

when I vi any thing I get error:
segmentation fault.

Please how can I solve this problem? What is causes this.

Even in the event of restarting the machine, I see so many fails with segmentation fault.
 
Old 03-05-2010, 11:05 AM   #2
LazerPhreak
Member
 
Registered: Dec 2009
Location: USA
Distribution: Ubuntu Server / Desktop / UNR
Posts: 117

Rep: Reputation: 17
Well the segmentation faults can be explained from the login problem, with programs trying to access unauthorized resources. As for being unable to login, can you try to boot into runlevel 1 to fix things?
 
Old 03-05-2010, 12:07 PM   #3
wasamzy
Member
 
Registered: Apr 2009
Location: Ghana Accra
Posts: 64

Original Poster
Rep: Reputation: 15
Thanks so much for the quit respond. But how can I boot into runlevel 1?
 
Old 03-05-2010, 12:36 PM   #4
LazerPhreak
Member
 
Registered: Dec 2009
Location: USA
Distribution: Ubuntu Server / Desktop / UNR
Posts: 117

Rep: Reputation: 17
On an x86 system using GRUB, use the following steps to boot into runlevel 1.

At the GRUB splash screen at boot time, press any key to enter the GRUB interactive menu.

Select Red Hat Enterprise Linux with the version of the kernel that you wish to boot and type a to append the line.

Go to the end of the line and type single as a separate word (press the Spacebar and then type single). Press Enter to exit edit mode.
 
Old 03-06-2010, 03:29 AM   #5
wasamzy
Member
 
Registered: Apr 2009
Location: Ghana Accra
Posts: 64

Original Poster
Rep: Reputation: 15
thanks. Hmmm, how do I know which files are broken or not? Or can I just use the installation CD to just over install the existing OS with out changing any data, just for the broken system files to be repair?
 
Old 03-06-2010, 03:08 PM   #6
centosboy
Senior Member
 
Registered: May 2009
Location: london
Distribution: centos5
Posts: 1,137

Rep: Reputation: 116Reputation: 116
Quote:
Originally Posted by wasamzy View Post
I have a centos server running nagios for monitoring. I restarted the machine, it is actually a console server anyway. After getting to the login screen, I typed in my user name but it never propt for my password. I can't even ssh into the system.

So I tried to use the installation cd and enter into rescue mode where I typed chroot and was able to enter into the root environment.
I was able to configure a network interface in the rescue mode and can ping the machine at this point, though can ssh still.

In the root environment, I tried running couple commands.
like try to restart the sshd.
When I typed /etc/init.d/sshd restart, I got an error saying:

766 segmentation fault.

when I vi any thing I get error:
segmentation fault.

Please how can I solve this problem? What is causes this.

Even in the event of restarting the machine, I see so many fails with segmentation fault.
how long has this installation been running for??
You might need to use the rescue disk to repair your installation. Sounds totally broken...
The main question(s) would be...

What has changed since the system last ran correctly?
Have you updated, added or removed any software since the system last ran correctly??
Could the system have been compromised??

Just a few of the questions you need to ask yourself first..
 
  


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
In Apache server, How to change log file location and log format for access log fil? since1993 Linux - Server 1 08-19-2009 04:14 PM
CentOS won't let me log in as anybody! bmiller1213 Linux - Newbie 1 07-03-2009 12:52 PM
Problem with Centos hanging, console services/network down, no log info jackd1000 Red Hat 2 09-25-2008 03:54 AM
Centos 5 vsftpd /var/log/secure question johnvoisey Linux - Security 3 09-06-2007 06:45 AM
yum.log & logwatch on centos 4.4 hank43 Linux - Software 1 12-17-2006 08:23 PM

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

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