autologout

Khachatur Shahinyan khachatur.shahinyan at arca.am
Fri Apr 17 12:58:16 UTC 2009


Hello Raj
Add following lines in the end of /etc/profile
 TMOUT = 120
readonly TMOUT
export TMOUT

This will force the user to auto logout after 120 seconds of being idle, 
and also will not allow that user to change TMOUT variable. But remember 
that this affects on all users including ROOT.


Best regards


Raj Har wrote:
> hello experts,
>
>                          i wanna auto logout any user after perticular time
> period.
>
> eg. usera "A" automatically logout after 1 hour.
>
> can i do this with any script or any command?
>
> thanks
>   




More information about the redhat-list mailing list