From: John McNulty <jm@uvo.dec.com>
Subject: Re: Help w/auto logouts OSF/1 v3.0
Date: 1995/04/07 [thread overview]
Message-ID: <3m46ba$kb5@jac.zko.dec.com> (raw)
In-Reply-To: 3m3iva$fbb@aurora.engr.LaTech.edu
+ 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
prev parent reply other threads:[~1995-04-07 4:00 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
1995-04-07 4:00 Help w/auto logouts OSF/1 v3.0 Ross Sanders
1995-04-07 4:00 ` John McNulty [this message]
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox