Operating System - HP-UX
1826407 Members
4347 Online
109692 Solutions
New Discussion

Re: Telnet & console pause after login

 
SOLVED
Go to solution
Swee Keat
New Member

Telnet & console pause after login

Hi, I've got this problem on a HP-UX 11.00 box where, when trying to login via telnet or on the console, after supplying correct username & password, there's a long delay before the shell prompt appears. I've tried setting the 'hosts' line in nsswitch.conf to 'files [NOTFOUND=return] dns', but that does not help (in any case, would DNS problem affect console login?). Any other ideas?
8 REPLIES 8
RAC_1
Honored Contributor

Re: Telnet & console pause after login

Is the home directory of this user on NFS mounted directory?

IF yes move HIST file setting to local directory.

Are the quatas enabled for this user?
There is no substitute to HARDWORK
Leo Simon
Valued Contributor

Re: Telnet & console pause after login

I don't think this is DNS problem.
It might be NIS setting problem or security password problem.
First check your configuration and disable NIS
if you are not using it.
help each other with love
Ian Kidd_1
Trusted Contributor
Solution

Re: Telnet & console pause after login

The login process involves several different files. Maybe you can put something like:

echo "start of profile"

at the top of /etc/profile and:

echo "start of .profile" at the top of your profile.

This way we can determine where to start (ie. does the pause happen before /etc/profile or during or during ~/.profile?)

If at first you don't succeed, go to the ITRC
John Dvorchak
Honored Contributor

Re: Telnet & console pause after login

Just curious is your HISTFILE is rather large and/or on an NFS mount as mentioned earlier. Usually a long pause is while the machine is getting quotas or while it is running a bdf after logon and some mounted file system is slow responding. You didn't mention how long the "long delay" actually is. Just couple of seconds or a minute or two? I prefer to set HISTSIZE to 10000 and I have noticed delays getting the prompt and it increases as the HISTFILE grows. But even at that the delay is only a couple of secons, but I could see how it could take a lot longer if the HISTFILE were on an nfs mounted system.
If it has wheels or a skirt, you can't afford it.
Bill Hassell
Honored Contributor

Re: Telnet & console pause after login

Make sure that the machine that is starting telnet is known to the machine where you are logging into. After you are logged in, try this:

nslookup $(who -muR | awk '{print $NF}')

It should report on the name (or IP address). If not, you'll need to add the remote machine's IP into your local /etc/hosts, then test again.


Bill Hassell, sysadmin
John Payne_2
Honored Contributor

Re: Telnet & console pause after login

I would do what Ian suggested, but following that, start moving the echo down which ever file is causing the problem until you find the culprit. (Move the echo down, log in, move the echo down log in...) Then once you have found the culprit, fix it.

I guess it's possible that you could have a performance problem on your machine also, but you didn't mention it, so I will assume not.

Hope it helps

John
Spoon!!!!
John Payne_2
Honored Contributor

Re: Telnet & console pause after login

Oh, and remove the echo from the /etc/profile as soon as possible after finding the problem so that all your end users don't see it and decide to call you to ask what the heck is going on...

John
Spoon!!!!
Swee Keat
New Member

Re: Telnet & console pause after login

Thanks Ian & John. I've narrowed the problem down something in the /etc/profile (pause happens after 1st echo, b4 2nd echo). Will debug /etc/profile accordingly. Taking some time, coz this is a remote box I don't have direct access to, so need to work through an operator at the site.