1856450 Members
3370 Online
104113 Solutions
New Discussion

Re: User logins -exit

 
skravi17
Advisor

User logins -exit

Hi

we are facing problem users not exited from
the unix system.Example we have unix login
applprd > our developer will login into unix applprd login and they left as it is, we want
to know how to control the unix login? any way
to timeout session we can set it for user level?
5 REPLIES 5
Animesh Chakraborty
Honored Contributor

Re: User logins -exit

Hi,
In $HOME/.profile
you can put TIMEOUT=600
export TIMEOUT

Did you take a backup?
skravi17
Advisor

Re: User logins -exit

Hi

timeout = 600 means seconds?i added the timeout
parameter in my profile, but it is not working?
one more clarification when 10 users login
same unix applprd login and 9 user's are active
and only one unix applprd login is inactive, how the timeout parameter will work?

regards
ravi
Uncle Liew
Advisor

Re: User logins -exit

Hi,

There are few possibilities.

What is HP-UX OS Version?

Try the following:

1. ps -ef | grep inetd
kill

2. Restart inetd with logging:
/usr/sbin/inetd -l

3. The very next time, the user being timeout, capture the logging message in /var/adm/sw/syslog/syslog.log & send to us in the forum.

I am waiting for your syslog.log info.
Animesh Chakraborty
Honored Contributor

Re: User logins -exit

hi,
Sorry The parameter is TMOUT
and it is in seconds.
For other telnet session they should not be affected.
Also see
http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x13baa1abbac8d5118ff10090279cd0f9,00.html
Did you take a backup?
T G Manikandan
Honored Contributor

Re: User logins -exit

If you are using c shell for the users then you can set the automatic logout with

the variable
autologout

Like

set autologout=30

This will close the session after 30 minutes of idle time.

If you are using ksh or sh then you can use the TMOUT variable.It is in seconds.

The TMOUT variable does not respond to vi.
if the shell is idle for 10min(600 sec) then it gives a timeout.
if you open a vi TMOUT cannnot help it like when you exit your vi editor the TMOUT variable will be reset.


Thanks