LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-06-2010, 09:04 AM   #1
i.you
Member
 
Registered: Oct 2006
Posts: 46

Rep: Reputation: 15
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.
 
Old 01-06-2010, 09:22 AM   #2
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976
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.
 
1 members found this post helpful.
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
ssh autologout from linux server Energy84 Linux - Server 2 12-26-2008 10:38 AM
SSH-Autologout XaViaR Linux - Security 2 02-17-2005 11:42 AM
autologout, vnc Tredo Linux - General 0 12-16-2004 01:01 PM
can we configure a Linux server with mail server,file server and web server kumarx Linux - Newbie 5 09-09-2004 07:21 AM
terminal autologout FLOODS Linux - Newbie 2 01-25-2004 08:21 AM


All times are GMT -5. The time now is 01:53 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration