From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,df57f833e7ba4154 X-Google-Attributes: gid1164f8,public From: John McNulty Subject: Re: Help w/auto logouts OSF/1 v3.0 Date: 1995/04/07 Message-ID: <3m46ba$kb5@jac.zko.dec.com>#1/1 X-Deja-AN: 100059465 references: <3m3iva$fbb@aurora.engr.LaTech.edu> content-type: text/plain; charset=iso-8859-1 organization: Digital Equipment Corporation x-url: news:3m3iva$fbb@aurora.engr.LaTech.edu mime-version: 1.0 newsgroups: comp.sys.dec x-mailer: Mozilla 1.1b3 (X11; I; OSF1 V3.2 alpha) + 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