Simpler Navigation coming for Servers and Operating Systems
Coming soon: a much simpler Servers and Operating Systems section of the Community. We will combine many of the older boards, and you won't have to click through so many levels to get at the information you need. If you are looking for an older board and do not find it, check the consolidated boards, as the posts are still there.
cancel
Showing results for 
Search instead for 
Did you mean: 

User Time-outs

Darren Etheridge_2
Super Advisor

User Time-outs

Is there a way to assign user time-outs for users that stay idle for hours at a time? I am in a Informix enviornment and would like to auto logout any users that are using our INQUIRE ONLY logins after an hour or so.
Thanks for your time :)
2 REPLIES
Tom Danzig
Honored Contributor

Re: User Time-outs

If by chance your're using csh, you can specify an amount of time an idle user will be automatically logged out:

set autologout=60

This would auto logout a user if idle for one hour.
Highlighted
Victor BERRIDGE
Honored Contributor

Re: User Time-outs

You can set in .profile for KSH or /etc/profile for all users (using ksh, Im not sure for the other shells..) the var TMOUT
TMOUT=3600
export TMOUT
would logout after an hour
But if the user is in a session of something that could be: man ls, or more afile etc...
Then your attempt will fail

Good luck
Victor