No script required you just need to edit a few configs.
For the Bourne shells (sh and bash) just set TMOUT to the number of seconds: TMOUT=3600; export TMOUT.
The (t)csh need set autologout 5 (for 5 minutes).
Edit /etc/profile for (ba)sh. And /etc/csh.cshrc for (t)csh.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.