BLUE
Profile banner
N
nixCraft
@cyberciti.biz
Enjoy #Linux, #macOS, & #Unix systems? #Opensource software & #programming? Enjoy #Sysadmin & #DevOps work? Follow us to make the most of your geeky IT career. Blog: www.cyberciti.biz | Forum: www.nixCraft.com
2.3k followers5 following617 posts
Ncyberciti.biz

You can `readonly TMOUT=300; export TMOUT` to have bash (for CSH/TCSH try `set -r autologout= 5`) to you off automatically if you leave the shell idle for more than 5 minutes. The variable is read-only, so users can not change the value. See www.cyberciti.biz/faq/linux-un... for more info.

Linux / UNIX Automatically Logout BASH / TCSH / SSH Users After a Period of Inactivity
Linux / UNIX Automatically Logout BASH / TCSH / SSH Users After a Period of Inactivity

Explains how to automatically log users out after a period of inactivity under Linux / UNIX / BSD server and ssh clients to improve security.

0

Profile banner
N
nixCraft
@cyberciti.biz
Enjoy #Linux, #macOS, & #Unix systems? #Opensource software & #programming? Enjoy #Sysadmin & #DevOps work? Follow us to make the most of your geeky IT career. Blog: www.cyberciti.biz | Forum: www.nixCraft.com
2.3k followers5 following617 posts