Sharing Knowledge | System Admin Articles

Automatic logout of inactive sessions in Linux and UNIX



To setup automatic logout of the inactive sessions in UNIX and Linux,
Set the TMOUT variable in /etc/bash.bashrc.local and /etc/profile.local


For Example:


TMOUT=<TIme in minutes>

TMOUT=0  is to set infinite time out or disable the automatic logout


To set this time out setting for a particular user:



Set the following in .profile or .bash_profile file which is available in each user home directory


For example:
export TMOUT=600


Labels: Linux, Quick HOWTO, Tips

My Profile PhotoAbout the Author

I'm Parthiban, An UNIX System Admin by Profession. I'm Experienced in Linux/Unix System Administration and Scripting. I have done lot of work on the infrastructure Mgmt side in Linux, UNIX and Windows system administration, Hardware, Storage and Data center. I'm blogging since 2008.
Follow Me On Twitter or On Facebook

0 Comments for "Automatic logout of inactive sessions in Linux and UNIX"

What do you think about this Article? Add your Opinion..!

Back To Top