System Administration
cancel
Showing results for 
Search instead for 
Did you mean: 

User logging out automatically

Salman Ahmed Qureshi
Frequent Advisor

User logging out automatically

Hi,
I have OS users on my HP Unix 11.11 system which are used by my applicaiton team to run an application which is deployed on the system. They have just started complaining that user is automatically logged out after a few hours. i have checked system logs but didnt find anything wrong. Can anyone help me find out why this is hapenning and how to solve this problem.
Thanks

Salman
4 REPLIES
VK2COT
Honored Contributor

Re: User logging out automatically

Hello,

Some useful information is missing, so we must assume it.

a) If your users are running Posix Shell,
Bash, or Ksh, there is an environment
variable "TMOUT". If it is set to a value
greater than zero, the shell will terminate
if the login session is idle for longer than
prescribed number of seconds.

b) If your users are running Csh (huh,
I hope nobody uses it nowdays), there
is an environment variable called "autologout". The initial value of
autologout is 600. If unset or set to 0,
autologout is entirely disabled.

c) If your users use SSH to connect
to the server, than you might need to check
these configs too.

Here are some directives of SSH serverâ s sshd_config that are related to session timeouts:

ClientAliveInterval
TCPKeepAlive

Here are some directives of clientâ s ssh_config:

ServerAliveInterval
ServerAliveMaxCount
TCPKeepAlive

d) Are they using any customized login
accounts? Any special startup files?
Does it happen to any user or just specific users?

e) Finally, it is possible that some routes and firewalls are imposing idle session
timeouts too.

Check the above by eliminating those options
that do not apply.

Cheers,

VK2COT
VK2COT - Dusan Baljevic
Johnson Punniyalingam
Honored Contributor

Re: User logging out automatically

>>They have just started complaining that user is automatically logged out<<

Can you give more Information ?

does that user account has been shared between the Application Team ?

is the Server is Trusted System ?

if /tcb folder exist its trusted system

if you can post the below outputs it would be help full to advice ?

/usr/lbin/getprpw -l

grep /etc/passwd

or

finger
Problems are common to all, but attitude makes the difference
Johnson Punniyalingam
Honored Contributor

Re: User logging out automatically

As posted above ? please check (Session TIME OUT)

# echo $TMOUT -> will show you session time-out

its kind of security feature which doesn't allow the user to be idle
Problems are common to all, but attitude makes the difference
OldSchool
Honored Contributor

Re: User logging out automatically

Is the user in an application / actively working at the time of the "logout"? If so, the timeout values *don't* apply.

If the user has started an application, but is idle within it, its possible the app has its own timeout settings (I've seen this with at least one database)

how is the user connecting to the server? telnet / X / SSH.

Is there a firewall between the user and the server somewhere?

I've also seen network problems that mimicked this kind of issue. A user would be working, and then the network connection gets broken.