1833824 Members
2432 Online
110063 Solutions
New Discussion

Re: Log in probem

 
SOLVED
Go to solution
guru_1
Frequent Advisor

Log in probem

I have a problem..if i login as a user called user 1 in my hpux machine ater some time the user is automatically logged out ..it says connection to the hopst lost...the machine ...is online ....acn anybody suggest whats happening.

kuls
16 REPLIES 16
Rita C Workman
Honored Contributor

Re: Log in probem

I might ask myself...

Do all users get logged out at the same amount of time?

Does the same happen using different protocols..example telnets get logged out but ftp don't?

Is there a timeout command set in .profile, etc.?

Sort of hard to give an answer with few details...so often the best suggestion.. start ruling out what it isn't..and as Mr. Holmes says..what is left is obviously the answer.

Just a thought,
Rita



Sridhar Bhaskarla
Honored Contributor

Re: Log in probem

Hi,

The best test is to login as user1 and user2 and see if both the logins are getting disconnected at the same time.

And as pointed by Rita, check his/her .profile to see if TMOUT environment variable has been set.

-Sri
You may be disappointed if you fail, but you are doomed if you don't try
Michael Tully
Honored Contributor

Re: Log in probem

Hi,

If all users get logged out after the same
period of time, you may find that the
problem lies in the 'TMOUT' variable being
in the /etc/profile
If it is only related to the one user,
then as already pointed out the same
variable will be in use in the users home directory .profile

HTH
-Michael
Anyone for a Mutiny ?
Steven Sim Kok Leong
Honored Contributor

Re: Log in probem

Hi,

If idle TMOUT in your login shell is not the cause, then check out the TCP_KEEPALIVE_INTERVAL network parameter. Use ndd to get the current value, ie execute:

# ndd -get /dev/tcp tcp_keepalive_interval

If that was not the cause, and if there is a network-based firewall before your server, check the TCP connection timeout value set.

Your idle timeout is:

min (server TMOUT, server KEEP_ALIVE_INTERVAL, firewall TCP connection timeout)

Hope this helps. Regards.

Steven Sim Kok Leong
Brainbench MVP for Unix Admin
http://www.brainbench.com
guru_1
Frequent Advisor

Re: Log in probem

Hi,
This is happening with only one user and the shell being used is /usr/local/bin/tcsh.I am attching the .cshrc file of the same .if anybody can help.

thnks
guru_1
Frequent Advisor

Re: Log in probem

Hi,
There is no TMOUT variable set in .cshrc ,.profile or /etc/profile and i have checked ndd -get /dev/tcptcp_keepalive_interval

the o/p is 7200000.pls lety me know what does it mean.

thnks
KULS
K.Vijayaragavan.
Respected Contributor

Re: Log in probem

Please clarify whether you are logging into the server from the server console or terminal on serial ports or doing telnet from another system/PC and then logging.

In case if you are logging into the server from another system/PC by doing "telnet" this kind of problems (problem you have faced) are likely to occur because of IP address /hostname clash.
- K.Vijay
"Let us fine tune our knowledge together"
discoverer
Frequent Advisor

Re: Log in probem

I have met the same issue for several times.
Most of them are due to IP confilct.

Just disconnect this machine, then
* telnet that IP, use 'who' to check who is using that machine, or even 'wall' the guys
* if it is a PC that can't be telnet'ed, run 'nbtstat -A that_IP' to find out that PC's name.

Hope this helps,

/Discoverer
Listen, then discover, then succeed!
guru_1
Frequent Advisor

Re: Log in probem

Hi,
I am logging into the machine using the telnet from my windows workstation and plus i did from other wrkstation also and it is giving problem only with this user id and there is no ip clash plus just before the connection is lost it says auto-logout...i am not able to find where this param is set ...as in .cshrc...it has been set to 0 ...and i am using tcsh (/usr/local/bin/tcsh).

thnks
John Palmer
Honored Contributor

Re: Log in probem

Have you confirmed that the variable AUTOLOGOUT has been set to a value other than zero? Use the 'set' command to check.

Has the user got a .login file in the home directory? This is run after .cshrc if it exists.

Regards,
John
guru_1
Frequent Advisor

Re: Log in probem

Hi john ,
You are right ..when i gave the set command i came to know that autologout was set to 60 ....so where i can change that ...as i am not able to see this variable defined in .cshrc...and when i give env command ..it is also not showing up their..so can u explain what is set and from where it gets thye input ..??


thnks
Rita C Workman
Honored Contributor

Re: Log in probem

Ahh....

Take a look at the line again, it's syntax is wrong.

The line should read set autologout=0

See this thread:
http://www.sunhelp.org/pipermail/sunhelp/1999-December/001584.html

Rgrds,
Rita
guru_1
Frequent Advisor

Re: Log in probem

So do i have to create ~/.tcshrc or i can set it in the .cshrc(set autologout=0)

Rita C Workman
Honored Contributor

Re: Log in probem

According to that thread, you set it wherever you prefer.

Rita
Rita C Workman
Honored Contributor
Solution

Re: Log in probem

Kuls,

Alot of folks here offered some very good thoughts for you to try in an effort to help...

It would be appropriate to assign points in appreciation.

Sincerely,
Rita



guru_1
Frequent Advisor

Re: Log in probem

Hi ,
Thanks to al who have helped me withb their valuable thoghts.I will check that and get back..... in case.

thnks
Kuls