1847097 Members
4833 Online
110262 Solutions
New Discussion

Re: about the timeout

 
leyearn
Regular Advisor

about the timeout

how can i set the time paramter
when the user do nothing on the sell prompt
I want to make the login window exit after the the specified idle time!
3 REPLIES 3
A. Clay Stephenson
Acclaimed Contributor

Re: about the timeout

export TMOUT=1200

This will cause an idle shell to logout after 1200 seconds.
If it ain't broke, I can fix that.
Joseph Loo
Honored Contributor

Re: about the timeout

hi,

for individual user:

# vi ~/.profile
export TMOUT=600
-> add the above at the bottom of the file, 600 seconds.

for all user:

# vi /etc/profile
export TMOUT=600

regards.
(p.s. please remember to assign points.)
what you do not see does not mean you should not believe
Ivan Ferreira
Honored Contributor

Re: about the timeout

Just remember that it works when it's on the prompt only. If the users starts vi or another program, if the user leaves the terminal, it won't time out.

It's different than when you see the IDLE time with the w command.
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?