LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   how to autologout from server (https://www.linuxquestions.org/questions/linux-newbie-8/how-to-autologout-from-server-780260/)

i.you 01-06-2010 08:04 AM

how to autologout from server
 
Hi there

I'm wondering how to let him logout automatically from server when the user is in idle for a long time after login.

Thanks in advance.

colucix 01-06-2010 08:22 AM

In order to logout from a terminal or a console, you can try to set the TMOUT variable. This is valid for both BASH and KSH with a slightly different behaviour (I don't know for other shells). For example, if you want to set a timeout of 15 minutes for all the users, you can add the following to /etc/profile:
Code:

export TMOUT=900
For the X environment there are methods which strictly depend on the specific desktop manager in use.


All times are GMT -5. The time now is 02:44 AM.