Set up Auto-Logout for root user
We can set up automatic logout for root session so that session gets logged off, if it is idle for a while. It is important to know this as any sneaker can misuse the situation, when a root user leaves the session idle. The method is very simple and as follows:
Here TMOUT is an environment variable which instructs the bash shell to exit if the session is idle. Here timeout is set as 300 seconds ( 5 minutes ).
http://kb.bobcares.com/
1) Login as root
2) vi ~/.bash_profile
3) Add this line: export TMOUT=300
4) Save and quit the file
2) vi ~/.bash_profile
3) Add this line: export TMOUT=300
4) Save and quit the file
Here TMOUT is an environment variable which instructs the bash shell to exit if the session is idle. Here timeout is set as 300 seconds ( 5 minutes ).
http://kb.bobcares.com/