1838457 Members
2948 Online
110126 Solutions
New Discussion

User auto logout

 
SOLVED
Go to solution
ShivKumar_1
Frequent Advisor

User auto logout

Hi guys,
I am looking for the parameter to be set , for a regular user to be logged out after he has been idle for 2 hours.


Thnks
SK
3 REPLIES 3
Joseph Loo
Honored Contributor
Solution

Re: User auto logout

hi,

add the following line at the end of ~/.profile for the regular user.

TMOUT=7200
readonly TMOUT

for all users, add it in /etc/profile.


regards.
what you do not see does not mean you should not believe
Michael Tully
Honored Contributor

Re: User auto logout

Depending on the shell being used:

TMOUT=3600 (seconds) korn shell
autologout csh

See the man pages of these two shells for further information.
Anyone for a Mutiny ?
ShivKumar_1
Frequent Advisor

Re: User auto logout

Hi guys,
Thnks for the response.