1820658 Members
2432 Online
109626 Solutions
New Discussion юеВ

Re: login session failes

 
SOLVED
Go to solution
kdcl
Occasional Advisor

login session failes

Hi,

If i am doing telnet to a particular HP host,my session get timed out before i type my user name & password.Whereas my other hosts are working fine.Can someone please guide me to troubleshoot the issue.Is there any parameter to be set for it so that the login session does not timed out for (say 60 seconds)
20 REPLIES 20
TTr
Honored Contributor

Re: login session failes

You need to provide more details here.
What type of telnet client do you use to connect? command based or screen based?
Do you get a login prompt to type in the username and password?
Are there any error messages on the client side?
The timeout parameters are in the shell after you login or at the network if there is inactivity not at the telnet service.
kdcl
Occasional Advisor

Re: login session failes

Hi..
I am doing a telnet form one HP box to another HP box through command promt only.I am getting the login promt once i m doing a telnet/ssh to that HP host.This new session will remain for 10-15 seconds only,& as a result i am not getting enough time to type my user name& passwd.So i want to increase that particular session time period.
Please let me know if you need any more information.

Thanks
TTr
Honored Contributor

Re: login session failes

Let's take them one thing at a time. Telnet not ssh. What exactly happens? You type "telnet HPhost" what is the reply? Provide all the details and at which point does it disconnect you?

telnet HPhost
login:abc123
Password:xxxxxx
...

What exactly happens at each step?
sachit patil
Regular Advisor

Re: login session failes

It may be because of number of tty terminal configures on another machine are full.
kdcl
Occasional Advisor

Re: login session failes

let me give an example..
i m having three HP host. HostA,HostB,HostC.
From HostA i am doing a telnet to HostB & HostC.While doing a telnet to HostB i am getting the following message.
telnet HostB
login:123
passwd:XXX
........
HostB$
finally its coming to promt.After entering the login ID its wait for 60-70 seconds before i enter the password.
----------------------------------------------------------
Whereas while doing a telnet to HostC i am getting the following message..

telnet HostC
Password:
Login timed out

Wait for login exit: ..
Connection tho the HostC closed by foreign host.

Here i hardly get 8-9 seconds to provide my password after entering the login ID.And the session will show timed out.If i am entering the password within 8-9 seconds,i can able to successfully login.
So i want to increase the time span for this host also so that this will also wait for same 60-70 sec to enter the password.



TTr
Honored Contributor

Re: login session failes

Check in hostC for any errors in /var/adm/syslog/syslog.log. Something is preventing the telnetd in hostC to start up another telnet session. It could be out of ttys as suggested above, or out of processes or some other kernel parameter, or IP restrictions in /var/adm/inetd.sec. What is the HP-UX version of hostC?

On another note the 60-70 delay in hostB is because hostB can not resolve the IP address of hostA.
Analyst
Trusted Contributor

Re: login session failes

hi Kunal,

check the following paramneters

1. Do telnet to the local machine try whether its connecting , as lookback test.
2. Check for the entry in /var/adm/inetd.sec
for any IP restriction.
3. Check for the port /etc/services whether opened for telnet.

Still If you face problem, plz revert back with exact errors.

Thanks,
Analyst.
Johnson Punniyalingam
Honored Contributor

Re: login session failes

>>>>>Whereas while doing a telnet to HostC i am getting the following message..

Wait for login exit: ..
Connection tho the HostC closed by foreign host.
<<<<<<<<<<<

so our target should be checking "HOST C"

suspection :-

1. we need check what shell to you have on the "HOST C"
(example:- if user account has "ftponly" or "nullshell" you will this kind of results.

2. Login as root to "HOST C"

# cd~ --> the ID you get TMOUT ..?
# more .profile
look for # set up the shell variables
TMOUT=xxx ..?

permision of the .profle should be

r-- -- -- owner and placed in the user home directory

if its shared profile , should be secured as
-r-- r-- -- root and pleaced under the /home/config/ directory

Thanks,
Johnson
Problems are common to all, but attitude makes the difference
kdcl
Occasional Advisor

Re: login session failes

Hi All,
I think there is no problem with the user or the telnet.I can easily do the telnet the host,& its asking to enter the login ID/passwed too.No matter whether i am giving the login ID or not the session will timed out within 10 sec.But in other hosts it waits for 60 sec atleast before it shows timed out.Pls let me know if u need any more details.Check the mentioned output...

--------------------------------------------
HostA#telnet HostC

login:
Login timed out

Wait for login exit: ..
Connection closed by foreign host.

HostA#

Thanks in advance
Johnson Punniyalingam
Honored Contributor

Re: login session failes

Have you check you TMOUT settings under the user .profile

TMOUT=xxx ..?


Thanks,
Johnson
Problems are common to all, but attitude makes the difference

Re: login session failes

Hi, i also happen to be the same problem,
But, when i tried using the other IP address of the same machine, the time out is hot happening. Is it the
may be can some one guide me, thanks

TTr
Honored Contributor

Re: login session failes

This looks like the timeout is coming from the login program and not from telnet nor the shell. This is from the login man page
...If a login is not successfully completed within a certain period of time (for example, one minute), the terminal is silently disconnected. ...
I am not aware of the login program having a configurable timeout flag. It looks like it defaults to one minute. If you type "strings /usr/bin/login | grep timed" you will see the error message in the login binary.
The TMOUT variable applies to the shell only and the shell does not come into play yet during the login dialog.

Have you been able to successfully login to hostC if you type fast? And does it run normally after you login?
What is the OS version of hostC? And is it running in trusted mode?
kdcl
Occasional Advisor

Re: login session failes

I can easily login to the host if i type fast.And it runs smoothly once i logged in.The version i have is B.11.00.Checked with the TMOUT parameter also,it does not make any difference.Also checked with different IPs,but again no outcome.

I also found that there is a file in Solaris called as /etc/default/login where we can set this login time out parameter.Pls check the attached file and let me know if we also can have similar kind of file in HP UX also.

Thanks
Analyst
Trusted Contributor

Re: login session failes

Hi Kunal,

The output shows the timeout is not enabled (hashed),plz edit if it is not done.

In hp ux we have similiar settings, /etc/default/security file .

Go through that.

Revert back in case of errors.

Thanks,
Analyst.

(If the information is useful, kindly assign points).
kdcl
Occasional Advisor

Re: login session failes

hi,
i have already checked it,and found the following entries are only there in /etc/default/security.Do we need to modify this?If so pls let me know what are the entries i need to make there to set the login timed out parameter.

HostC $ more security
PASSWORD_HISTORY_DEPTH=10
PASSWORD_MIN_UPPER_CASE_CHARS=1
PASSWORD_MIN_LOWER_CASE_CHARS=1
PASSWORD_MIN_DIGIT_CHARS=1
MIN_PASSWORD_LENGTH=7
Johnson Punniyalingam
Honored Contributor

Re: login session failes

hi,

Below entries no-thing to do with login timed out parameter.,

below are credential for you passwd "settings" you are running "trusted" system,

would recommed to check with you

# cd /home/ --> .profile
check the TMOUT settings,

# /usr/lbin/getprpw -l --> out put needed

or please check "sys.log" will give you much information , if still not

we need check the user settings via, SAM ... Security settings

SAM->User&Group->Users--> --> Modify Security Policies... Security
Set Authorized Login Times
>>>>>>>.i have already checked it,and found the following entries are only there in /etc/default/security.Do we need to modify this?If so pls let me know what are the entries i need to make there to set the login timed out parameter.

HostC $ more security
PASSWORD_HISTORY_DEPTH=10
PASSWORD_MIN_UPPER_CASE_CHARS=1
PASSWORD_MIN_LOWER_CASE_CHARS=1
PASSWORD_MIN_DIGIT_CHARS=1
MIN_PASSWORD_LENGTH=7 >>>>>

Thanks,
Johnson
Problems are common to all, but attitude makes the difference
Dennis Handly
Acclaimed Contributor
Solution

Re: login session failes

You should be asking mr google since it is obvious we don't know the answer. :-)
I find the web page for Solaris, TIMEOUT. And I find these threads for HP-UX:
http://forums.itrc.hp.com/service/forums/questionanswer.do?threadId=9628
http://forums.itrc.hp.com/service/forums/questionanswer.do?threadId=1006161
http://docs.hp.com/en/B2355-60130/telnetd.1M.html

>TTr: This looks like the timeout is coming from the login program and not from telnet nor the shell.

It is still possible telnetd is doing it.
TTr
Honored Contributor

Re: login session failes

It looks like the first link that Dennis posted has the answer. It is a trusted system behavior.
TTr
Honored Contributor

Re: login session failes

> telnet HostC
> Password:
> Login timed out
>
> Wait for login exit: ..

I was able to reproduce the above error on my 11.00 trusted system. The controlling parameter is in the /tcb/files/auth/system/default file, towards the end "t_login_timeout#10:"
Change the #10 to a higher number or to #0 to completely disable it.
kdcl
Occasional Advisor

Re: login session failes

Hi All,
its really working. thanks for all of your support.

Thanks