Results 1 to 1 of 1
Generraly, administrators will stay login as “root” or forget to logout after finishing their work and leave their terminals unattended. The answer to solve this problem is to make the ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 10-31-2006 #1
- Join Date
- Jun 2006
logout root user from inactive session
The answer to solve this problem is to make the bash shell automatically logout after not being used for a period of time. For that, you must set the special variable named “TMOUT” to the time in seconds of no input before logout.
Edit your profile file (vi /etc/profile) and add the following line somewhere after the line that read “HISTSIZE=” on this file:
After this parameter has been set on your system, you must logout and login again (as root) for the change to take effect.