1834648 Members
2799 Online
110069 Solutions
New Discussion

autologoff of idle users

 
SOLVED
Go to solution
vskumar
Occasional Contributor

autologoff of idle users

Hi experts
I have some "dtsessions" which users logon and they dont use exit command, to logoff. As a result of the dtsessions of ROOT as well as some users sessions consu,e 98% of CPU usage.
I need a way to know to log off of idle users including ROOT if they are idle for say more than 3 hours

Thnks
Kumar
1 REPLY 1
Sridhar Bhaskarla
Honored Contributor
Solution

Re: autologoff of idle users

Hi Kumar,

If they are shell sessions (Posix,ksh), the TMOUT value should take care of it. Keep it in /etc/profile as readonly so that the users cannot modify it once they login.

export readonly TMOUT=10800

will timeout all idle shells after 3 hrs of inactivity.

-Sri

You may be disappointed if you fail, but you are doomed if you don't try