Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
* Help w/auto logouts OSF/1 v3.0
@ 1995-04-07  4:00 Ross Sanders
  1995-04-07  4:00 ` John McNulty
  0 siblings, 1 reply; 2+ messages in thread
From: Ross Sanders @ 1995-04-07  4:00 UTC (permalink / raw)


I have 3 DEC Alpha Station 200's running OSF/1 v3.0 and a DECStation 5000/133
running Ultrix 4.3.  They are all running YP (NIS) with one master and the rest
clients.  I need to automatically logout any/all users after a specified length
of time of inactivity at the consoles, remote dumb logins, and our Tektronix
X-Terminals.  How do I go about this?

Ross Sanders
sanders@alpha1.phys.latech.edu
System Administrator Physics Department
Louisiana Tech University
318-257-2461




^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Help w/auto logouts OSF/1 v3.0
  1995-04-07  4:00 Help w/auto logouts OSF/1 v3.0 Ross Sanders
@ 1995-04-07  4:00 ` John McNulty
  0 siblings, 0 replies; 2+ messages in thread
From: John McNulty @ 1995-04-07  4:00 UTC (permalink / raw)


+ I have 3 DEC Alpha Station 200's running OSF/1 v3.0 and a DECStation 5000/133
+ running Ultrix 4.3.  They are all running YP (NIS) with one master and the 
+ rest clients.  I need to automatically logout any/all users after a specified 
+ length of time of inactivity at the consoles, remote dumb logins, and our 
+ Tektronix X-Terminals.  How do I go about this?

The only way I know to do this (without writing a program) is within the shell 
itself. Not all shells have this capability, but those that do usually use an 
inactivity timeout variable to perform the task.  The only shells I've had
personal experience with which can, are the Korn Shell (ksh) and TCSH.  My
own preference lies with ksh, as it ships as standard on almost all UNIX 
implementations, is supported by those vendors, is the POSIX shell, and works 
the same where ever you find it.

In the Korn Shell:

  TMOUT
      If set to a value greater than 0 (zero), the shell terminates if a com-
      mand is not entered within the prescribed number of seconds after issu-
      ing the PS1 prompt.  (Note that the shell can be compiled with a max-
      imum bound for this value that cannot be exceeded.)


In tcsh:

     The automatic logout time is controlled by the variable autologout, the
     value of which is the number of minutes of inactivity will be allowed
     before automatically logging the user out.  When that many minutes have
     been reached, the shell prints "autologout" and dies (without executing
     ~/.logout).  The default for tcsh is to set autologout for 60 minutes on
     login shells, and when the user is root.  To disable autologout (for
     instance in a window system), unset the shell variable autologout.

-- 
John McNulty		      
Digital Equipment Corporation 
CSC/UK Unix Support Group




^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~1995-04-07  4:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1995-04-07  4:00 Help w/auto logouts OSF/1 v3.0 Ross Sanders
1995-04-07  4:00 ` John McNulty

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox