Solved

Login problems

Posted on 2000-03-11
9
374 Views
Last Modified: 2010-04-20
I'm looking for some suggestions regarding a problem that just cropped up on my linux server.

What's happening is:  Attempts to login to the machine (telnet, rlogin, console, IMAP) fails.  Telnet doesn't even show the "username" prompt, console and rlogin attempts freeze up after the password: prompt.

sendmail is receiving mail, and I can retrieve it with POP, but not IMAP.  I can connect with FTP just fine.

I figure I should see a pattern here, but don't and would love it if someone could point it out to me.

All the files are local (no NFS)...

summary:

not working:
rlogin (stops after password entered)
console (stops after password entered)
telnet (not even a username: prompt)
IMAP fails to connect

working:
sendmail receive
POP3 fetch
FTP
WWW
ipfwd
samba

Anyone?
0
Comment
Question by:wormzer
9 Comments
 
LVL 3

Expert Comment

by:jyu_88
ID: 2608213
for all users or just one particular user? If just one user, then could be invalid shell.

telnet no prompt, could be telnetd is not running or inetd is not running or could fork new processes due to exhausted recoures (max # of processes, etc.)? Is this server a busy or heavy-loaded one?






0
 
LVL 1

Author Comment

by:wormzer
ID: 2608228
No loads
All users
telnetd is running (spits out RedHat... welcome, just no "username" prompt.

You're where I was when I first noticed the problem. :)
0
 
LVL 8

Expert Comment

by:stefanx
ID: 2608244
I've found that in.telnetd attempts to do a reverse lookup on the source address first. When it cannot resolve (for example from a host within a masqueraded network), then it appears to hang. Give it about 3 minutes though and it eventually gives you a login prompt. Sendmail and pop3 don't do this, or at least don't wait that long for name resolution - imap, I don't know - have never used it.

If this is indeed your problem, install bind and set up zone files for your private IP's (if you are trying from a masqueraded network)

Hope that helps.
0
Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

 
LVL 1

Author Comment

by:wormzer
ID: 2608267
Adjusted points to 500
0
 
LVL 1

Author Comment

by:wormzer
ID: 2608268
console logins don't work either is the thing.  No matter how long I wait.  It's something to do with /sbin/login I think.  I'm finally able to check on it some more so we'll see how it goes.

Also, masquerading and samba are both working.  I'll add them to my list above.
0
 
LVL 1

Author Comment

by:wormzer
ID: 2608269
Edited text of question.
0
 
LVL 40

Accepted Solution

by:
jlevie earned 500 total points
ID: 2608295
Have you changed anything recently, like upgraded some libraries or something related to pam? You didn't say what Linux, but on RedHat /bin/login is dynamically linked to a bunch of things. Also if /etc/pam.d/login gets screwed up it could cause this behaviour.  
0
 
LVL 1

Author Comment

by:wormzer
ID: 2608310
ugh.  It turns out that someone hacked in and screwed up the security stuff.  Nevermind.  I guess I'm going to have to go through that scrub that I've been putting off.

Thanks for all the help -- I'll just distribute the points to everyone who tried to help.
0
 
LVL 1

Author Comment

by:wormzer
ID: 2608314
Sorry -- for some reason I thought you could distribute points.  jlevie came the closest, so I gave them to him.

Thanks everyone.

Scrub... scrub...
0

Featured Post

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Linux users are sometimes dumbfounded by the severe lack of documentation on a topic. Sometimes, the documentation is copious, but other times, you end up with some obscure "it varies depending on your distribution" over and over when searching for …
You ever wonder how to backup Linux system files just like Windows System Restore?  Well you can use Timeshift in Linux to perform those similar action.  This tutorial will show you how to backup your system files and keep regular intervals. Note…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question