LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   server no-gui logout after inactivity (https://www.linuxquestions.org/questions/linux-newbie-8/server-no-gui-logout-after-inactivity-4175503718/)

sniper8752 05-02-2014 11:39 AM

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.

cquick197 05-02-2014 12:05 PM

Get rid of the spaces around the equals sign. It should look like this:
Code:

TMOUT=120
readonly TMOUT
export TMOUT

That should work.


All times are GMT -5. The time now is 03:33 PM.