* For SH/BASH/TCSH
Below script will implement a 5 minute idle time-out for the default /bin/bash shell.
Step 1: Create file autologut.sh
# vi /etc/profile.d/autologout.sh
Add New
Append the following code:
TMOUT=300
readonly TMOUT
export TMOUT
Step 2: Save and close the file. Set permissions:
# chmod +x /etc/profile.d/autologout.sh
*For tcsh version follow the […]
Recent Comments