1833764 Members
2357 Online
110063 Solutions
New Discussion

Re: autologout

 
sreejith_4
Frequent Advisor

autologout

Hi,

Anyone knows where to set "autologout" variable.


Thanks
Sreejith M
7 REPLIES 7
harry d brown jr
Honored Contributor

Re: autologout

There is a TMOUT variable, but it ONLY works at a shell prompt.

For applications, you need to handle that yourself.

live free or die
harry d brown jr
Live Free or Die
Robert-Jan Goossens
Honored Contributor

Re: autologout

Hi,

ksh and sh
$HOME/.profile
# auto logout after 60 seconds.
export TMOUT=60

Hope this helps,
Robert-Jan
Peter Leddy_1
Esteemed Contributor

Re: autologout

Hi,

As said above TMOUT will work but if you are using SSH to connect then you can set the IdleTimeOut option to how many minutes/hours that you would like.

Regards,

Peter
HGN
Honored Contributor

Re: autologout

Hi

You can use the TMOUT variable and this can be specified on the profile for indivijual user or can put in /etc/profile which will be common for all users. By setting this if that session is not active for the time mentioned will be warn 1 minute and after that it will time out. I have implemented this and it is good.

Rgds

HGN
Bill Hassell
Honored Contributor

Re: autologout

autologout is a csh variable and works the same way as POSIX shells (ksh, bash, HP-UX sh). It starts a timer at the shell prompt and will logout the user after no keyboard input has been received for the $autologout period. autologout is measured in minutes whereas TMOUT (only for POSIX shells) is measured in seconds. To set a csh user's timeout, add the entry into /etc/csh.login.


Bill Hassell, sysadmin
sreejith_4
Frequent Advisor

Re: autologout

But here i use csh and when i login if i do
#echo $autologout, it is showing "600" means the autologout is set to 600 min. But if i want to change this value to 1000 min. permanently, which file should i modify. I can't see anything in /etc/csh.login.

Thanks
Sreejith M

Muthukumar_5
Honored Contributor

Re: autologout

In /etc/csh.login file, write as,

set autologout=1000

csh man page says,
Autologout
A new shell variable has been added called autologout. If the terminal remains idle (no character input) at the shell's top level for a number of minutes greater than the value assigned to autologout, you are automatically logged off. The autologout feature is temporarily disabled while a command is executing. The initial value of autologout is 600. If unset or set to 0, autologout is entirely disabled.

HTH.
Easy to suggest when don't know about the problem!