Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 05-02-2014, 12:39 PM   #1
Registered: Oct 2012
Posts: 375

Rep: Reputation: Disabled
server no-gui logout after inactivity

I have an Ubuntu server, and I am trying to logout the user after 2 minutes of inactivity on the machine. I modified /etc/profile, and added the following lines;
TMOUT = 120
readonly TMOUT
export TMOUT
When I login, i get this error: TMOUT: command not found.
Old 05-02-2014, 01:05 PM   #2
LQ Newbie
Registered: Feb 2014
Posts: 15

Rep: Reputation: 0
Get rid of the spaces around the equals sign. It should look like this:
readonly TMOUT
export TMOUT
That should work.


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
[SOLVED] Ubuntu Server unavailable over network after inactivity moosport Linux - Server 5 01-11-2012 10:12 PM
TCP server dies after few hours of inactivity swatidas11 Linux - Networking 3 01-18-2010 08:40 AM
Automatic Logout after inactivity from KDE jst1 Linux - Newbie 2 02-23-2005 02:28 AM
Automatic Logout after inactivity from KDE Suse 9.2 jst1 SUSE / openSUSE 0 02-21-2005 03:05 PM
How do I automatically logout after a period of inactivity? AshleyK Linux - Security 4 12-31-2004 11:47 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:49 AM.

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