From owner-freebsd-questions@FreeBSD.ORG Wed Nov 26 19:38:06 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 215A316A4CE for ; Wed, 26 Nov 2003 19:38:06 -0800 (PST) Received: from munk.nu (mail.munk.nu [213.152.51.194]) by mx1.FreeBSD.org (Postfix) with ESMTP id 290E543F93 for ; Wed, 26 Nov 2003 19:38:05 -0800 (PST) (envelope-from munk@munk.nu) Received: from munk by munk.nu with local (Exim 4.24; FreeBSD) id 1APCyh-000FKg-VD for questions@freebsd.org; Thu, 27 Nov 2003 03:38:03 +0000 Date: Thu, 27 Nov 2003 03:38:03 +0000 From: Jez Hancock To: questions@freebsd.org Message-ID: <20031127033803.GA48584@users.munk.nu> Mail-Followup-To: questions@freebsd.org References: <6.0.0.22.2.20031126184347.04e7f5a8@localhost> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <6.0.0.22.2.20031126184347.04e7f5a8@localhost> User-Agent: Mutt/1.4.1i Sender: User Munk Subject: Re: Where is "autologout" set? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 27 Nov 2003 03:38:06 -0000 On Wed, Nov 26, 2003 at 06:48:06PM -0700, Brett Glass wrote: > I'm logging into a headless FreeBSD box via a serial port (which I don't > normally do) and am finding that the "autologout" variable is being set > to 60 minutes in the shell. I can't find where the variable is being set; > it's not in /etc/csh.* or in any of the "dotfiles." Can someone tell me > where this variable is being set, so that I can adjust the time or > disable automatic logouts? >From the man page: autologout (+) The first word is the number of minutes of inactivity before automatic logout. The optional second word is the number of minutes of inactivity before automatic locking. When the shell automatically logs out, it prints `auto-logout', sets the vari- able logout to `automatic' and exits. When the shell automati- cally locks, the user is required to enter his password to con- tinue working. Five incorrect attempts result in automatic logout. Set to `60' (automatic logout after 60 minutes, and no locking) by default in login and superuser shells, but not if the shell thinks it is running under a window system (i.e., the DISPLAY environment variable is set), the tty is a pseudo-tty (pty) or the shell was not so compiled (see the version shell variable). See also the afsuser and logout shell variables. So presumably if you make sure the DISPLAY env variable is set you won't be logged out automatically. I've never come across autologout running csh - probably because I always use a regular tty. There's quite a few references to 'autologout' in the tcsh(1) man page anyway, have a look. -- Jez Hancock - System Administrator / PHP Developer http://munk.nu/