LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 05-02-2014, 11:39 AM   #1
sniper8752
Member
 
Registered: Oct 2012
Posts: 564

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;
Code:
TMOUT = 120
readonly TMOUT
export TMOUT
When I login, i get this error: TMOUT: command not found.
 
Old 05-02-2014, 12:05 PM   #2
cquick197
LQ Newbie
 
Registered: Feb 2014
Posts: 15

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


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

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:56 AM.

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
Open Source Consulting | Domain Registration