LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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 12-22-2005, 12:47 PM   #1
JoeNeedsHelp
LQ Newbie
 
Registered: Dec 2005
Posts: 11

Rep: Reputation: 0
Exclamation Login hanging after Password entered...


This is my first attempt to post here, so I hope that I am going about it properly. Please feel free to correct and/or point me in the right direction if you see any problems with my post(s).

Problem: After entering any User and Password (valid or not) the process hangs indefinitely.

Notes: Both normal logins (remote or via console)and ftp are hanging; Samba is acting fine; rebooting corrected the issue until today; server has been up without (recent) adjustments for over a year; otherwise server seems normal (although without the ability to login, this is pretty meaningless).

If anyone out there has a plan of attack for this your advice is more than welcome. I am fairly green when it comes to the guts of Linux, so dont assume too much

Thanks!

Last edited by JoeNeedsHelp; 12-22-2005 at 01:51 PM. Reason: no replies, need some help if there is anyone that can assist!
 
Old 12-22-2005, 04:06 PM   #2
Oliv'
Senior Member
 
Registered: Jan 2004
Location: Montpellier (France)
Distribution: Gentoo
Posts: 1,014

Rep: Reputation: 36
Hello,

First, which distro you use ???
have you do an update recently ???
 
Old 12-22-2005, 06:43 PM   #3
JoeNeedsHelp
LQ Newbie
 
Registered: Dec 2005
Posts: 11

Original Poster
Rep: Reputation: 0
Further analysis: in single user mode I can manually launch all (at least the obvious ones that I need; network, ftp, ssh, samba, cron) services without issue. I can then access the server normally, logging in and using ftp remotely... However, these same services do not function if the server is brought up in multi-user mode as they all 'hang' after asking for a password.

Oliv: It is running Redhat and has had no recent updates.

Last edited by JoeNeedsHelp; 12-22-2005 at 06:45 PM.
 
Old 12-23-2005, 12:13 AM   #4
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,359

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
Which version of RedHat?
 
Old 12-23-2005, 02:12 AM   #5
Oliv'
Senior Member
 
Registered: Jan 2004
Location: Montpellier (France)
Distribution: Gentoo
Posts: 1,014

Rep: Reputation: 36
Could you post the content of your /etc/inittab file ???
 
Old 12-23-2005, 11:23 AM   #6
JoeNeedsHelp
LQ Newbie
 
Registered: Dec 2005
Posts: 11

Original Poster
Rep: Reputation: 0
-rw-r--r-- 1 root devel 1696 Sep 6 2004 /etc/inittab

id:3:initdefault:

# System initialization.
si::sysinit:/etc/rc.d/rc.sysinit

l0:0:wait:/etc/rc.d/rc 0
l1:1:wait:/etc/rc.d/rc 1
l2:2:wait:/etc/rc.d/rc 2
l3:3:wait:/etc/rc.d/rc 3
l4:4:wait:/etc/rc.d/rc 4
l5:5:wait:/etc/rc.d/rc 5
l6:6:wait:/etc/rc.d/rc 6

# Trap CTRL-ALT-DELETE
ca::ctrlaltdel:/sbin/shutdown -t3 -r now

# When our UPS tells us power has failed, assume we have a few minutes
# of power left. Schedule a shutdown for 2 minutes from now.
# This does, of course, assume you have powerd installed and your
# UPS connected and working correctly.
pf::powerfail:/sbin/shutdown -f -h +2 "Power Failure; System Shutting Down"

# If power was restored before the shutdown kicked in, cancel it.
pr:12345:powerokwait:/sbin/shutdown -c "Power Restored; Shutdown Cancelled"


# Run gettys in standard runlevels
1:2345:respawn:/sbin/mingetty tty1
2:2345:respawn:/sbin/mingetty tty2
3:2345:respawn:/sbin/mingetty tty3
4:2345:respawn:/sbin/mingetty tty4
5:2345:respawn:/sbin/mingetty tty5
6:2345:respawn:/sbin/mingetty tty6
7:2345:off:/sbin/mgetty ttyS0

# Run xdm in runlevel 5
x:5:respawn:/etc/X11/prefdm -nodaemon

Last edited by JoeNeedsHelp; 12-23-2005 at 11:30 AM.
 
Old 12-23-2005, 11:27 AM   #7
JoeNeedsHelp
LQ Newbie
 
Registered: Dec 2005
Posts: 11

Original Poster
Rep: Reputation: 0
Hope this tells you which version, if not please let me know how to get that info for you guys...

(joeneedshelp on bustedserver) ~ $ uname -a
Linux bustedserver.mycompanyname.com 2.4.21-32.0.1.ELsmp #1 SMP Tue May 17 17:52:23 EDT 2005 i686 i686 i386 GNU/Linux

Last edited by JoeNeedsHelp; 12-23-2005 at 11:29 AM.
 
Old 12-23-2005, 03:27 PM   #8
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696

Rep: Reputation: 232Reputation: 232Reputation: 232
Look into the logs (/var/log/messages) and see if there are messages about failed login etc.

Also, which filesystem do you have? (mount output will show it).
 
Old 12-27-2005, 09:25 AM   #9
Oliv'
Senior Member
 
Registered: Jan 2004
Location: Montpellier (France)
Distribution: Gentoo
Posts: 1,014

Rep: Reputation: 36
have you tried to run "chkrootkit" to be sure that you have not been hacked and that no exec like "mingetty" has been infected ???
see this site to find it: http://www.chkrootkit.org/

Oliv'
 
Old 12-27-2005, 06:12 PM   #10
JoeNeedsHelp
LQ Newbie
 
Registered: Dec 2005
Posts: 11

Original Poster
Rep: Reputation: 0
Mara: I have looked at my ../messages log and see nothing unusual with respect to access and failures.

Oliv: I have not attempted to run anything. I will see what that tells me, although I have checked every file that I can think of in this pathway for size and permission reasonability - they all appear good. This is further backed up by the fact that I can login normally once all processes are started by launching the things I need manually from single user mode.
 
Old 12-27-2005, 06:14 PM   #11
JoeNeedsHelp
LQ Newbie
 
Registered: Dec 2005
Posts: 11

Original Poster
Rep: Reputation: 0
Mara: filesystems are 'ext3' I think.
 
Old 12-28-2005, 02:34 PM   #12
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696

Rep: Reputation: 232Reputation: 232Reputation: 232
Quote:
Originally Posted by JoeNeedsHelp
Mara: I have looked at my ../messages log and see nothing unusual with respect to access and failures.
Mara: filesystems are 'ext3' I think.
I was rather thinking about a case of incorrect shutdown/poweroff, when a filesystem may break, something may be overwritten etc. Browse the log searching for things that may be caused by that.

Quote:
Oliv: I have not attempted to run anything. I will see what that tells me, although I have checked every file that I can think of in this pathway for size and permission reasonability - they all appear good. This is further backed up by the fact that I can login normally once all processes are started by launching the things I need manually from single user mode.
It means it's only about runlevel? Are you sure the scripts in /etc/rc.d are all correct?
 
Old 01-03-2006, 09:13 AM   #13
JoeNeedsHelp
LQ Newbie
 
Registered: Dec 2005
Posts: 11

Original Poster
Rep: Reputation: 0
Mara:
logs: I reviewed the message and other log files looking for anything unusual. I validated each entry that I did not immediately recognize and understand by looking at several client's machines files for similar messages. I could not find anything out of place.
/etc/rc.d: I pulled my entire /etc directory from backup from a time period when mulit-user bootup still functioned and I get this same thing. I reviewed this file initially to make sure it was not 'blanked' out somehow, or something similar and found nothing unusual here...

Another possibly interesting note here is that when this started to happen the first time, I was logged in to this machine and got a call from a remote employee that he could not login. I then opened another session to see what his trouble was about when I got my first 'hang'. At that point a reboot 'fixed' the trouble and I moved on. This repeated itself 2 days later in a similar fashion and was again fixed with a reboot. However, after about the 5th time (over about 10 days) the reboot did nothing to correct or help, and here I am.
 
Old 01-04-2006, 04:37 PM   #14
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696

Rep: Reputation: 232Reputation: 232Reputation: 232
What was your rection when the hand happened? Hard reboot or any kind of a normal shutdown?
 
Old 01-05-2006, 09:58 AM   #15
JoeNeedsHelp
LQ Newbie
 
Registered: Dec 2005
Posts: 11

Original Poster
Rep: Reputation: 0
Mara: After the phone call from my guy about not being able to login I entered <CTRL><ALT><DEL> from the console (since I also could not get any new sessions - although my current sessions were OK) and got a normal shutdown. I watched everything come offline and only saw the usual failures (/var unmount failure, etc.), nothing I have not seen before and nothing I thought to note. -THANK YOU FOR TAKING THE TIME HERE Mara, I really appreciate that.
 
  


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
KDE/GNOME NIS login hanging anjin84 Linux - General 1 10-20-2006 05:48 PM
Gnome hanging during login cybervegan Ubuntu 3 03-31-2005 12:53 PM
Cannot login since I entered chmod command? gopikrish Linux - Software 3 08-20-2004 05:44 PM
Login Hanging????? suseuser Linux - Software 1 06-21-2004 03:38 PM
MD5 password changes checksum when entered into database. Pcghost Programming 9 10-21-2003 12:31 PM

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

All times are GMT -5. The time now is 06:56 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
Open Source Consulting | Domain Registration