Sunday, October 14, 2007

How to set or disable auto-logout on bash shell

Following information is intended for bash shell only.
The system variable TMOUT can be set to specify the amount of time the user is inactive before the user is automatically logged out.
Set the following listed below in the /root/.bashrc file: TMOUT=XXX #
The system will logout the root account after one hour of inactivity. The value entered for the TMOUT= variable is in seconds. To represent 1 hour, we have to multiply as follows: 1 hour is 60 minutes. 60 minutes * 60 seconds = 3600 seconds.
After setting the parameter, the intended user will need to log out and then log in for the changes to take effect. To make modifications apply to all users on the system, specify the TMOUT variable in /etc/ profile.
To disable auto-logout simply comment out or delete the line with TMOUT value

Provided by:Forthscale systems, cloud experts

7 comments:

sandipon.duet said...

To disable auto-logout, just set the TMOUT to zero or unset it as follows:

$ export TMOUT=0
or
$ unset TMOUT

Elen Desouza said...

Great and very accommodating for all the mechanical shop seekers and I should also recommend winter tires for sale Capitola because it has helped me a lot and I am sure that it will do the same for you!
winter tires for sale Capitola

Bronwen seo said...

Great Work! Five Stars for free quote! They made it look so easy through their skills and experienced staff! I would suggest it to every single person out there!
free quote

Olivia Alexander said...

The movers that helped us on both ends were courteous, clean and efficient. Took 4 hours to pack up and 2 hours to unpack. I couldn't think of one thing they could have done better! Thanks to everyone over there for helping us and being so nice at the same time www.affordable-movers.co
http://www.affordable-movers.co/

Alex John said...

Great Work! Five Stars for click here! They made it look so easy through their skills and experienced staff! I would suggest it to every single person out there!
click here

johnleslie said...

Found your blog excessively interesting indeed. I really enjoyed studying it.
official statement

Ram Chauhan said...

Good post....thanks for sharing.. very useful for me... Thanks. Complete Set of Desktop on Rent