From owner-freebsd-hackers Thu Feb 2 17:53:46 1995 Return-Path: hackers-owner Received: (from root@localhost) by freefall.cdrom.com (8.6.9/8.6.6) id RAA29264 for hackers-outgoing; Thu, 2 Feb 1995 17:53:46 -0800 Received: from kryten.atinc.com (kryten.atinc.com [198.138.38.7]) by freefall.cdrom.com (8.6.9/8.6.6) with ESMTP id RAA29236 for ; Thu, 2 Feb 1995 17:53:19 -0800 Received: (jmb@localhost) by kryten.atinc.com (8.6.9/8.3) id UAA05912; Thu, 2 Feb 1995 20:39:28 -0500 Date: Thu, 2 Feb 1995 20:39:26 -0500 (EST) From: "Jonathan M. Bresler" Subject: Re: limits (again) To: Jaye Mathisen cc: Garrett Wollman , Jaye Mathisen , Ollivier ROBERT , Guido van Rooij , FreeBSD-hackers@freefall.cdrom.com In-Reply-To: <9502030002.AA17625@schizo.coe.montana.edu> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: hackers-owner@FreeBSD.org Precedence: bulk On Thu, 2 Feb 1995, Jaye Mathisen wrote: > Well, the stuff in the pwdb seems useful at logon, it looks harder to > make use of it constantly. ie, it's fine if they login before 5pm, but > when 5pm rolls around, I want their jobs killed, and them booted. That > looks easier in the kernel as opposed to login and some daemon. take a look at ftp://kryten.atinc.com/pub/unix/untamo3.gz it will log people off after a given period of inactivity. it runs as a daemon. adding code to logout users after 5pm should be trivial. here's the README Untamo is a locally developed daemon which periodically wakes up and logs off idle terminals; it also can deal with multiply-logged in users. It is configurable without recompilation, and features tunable parameters such as maximum allowed idle time, maximum allowable multiple logins, exemption lists, and so on. (Note: session limits do not work at the moment.) We use this program to ensure availability of one of our scarcer resources: terminals. Others may find it useful for different reasons; preventing users from leaving a terminal logged-in and unattended for hours is probably a reasonable security measure. The original posting caused a deluge of mail, as the sources contained references to local include files. This has been fixed by #ifdef'ing the code which applies only locally. This version has been successfully compiled on a Sequent Balance 21000 running Dynix v2.0.6, a CCI 6/32 running 4.3bsd, a DEC VAX-8600 running 4.3bsd, a Gould PowerNode 9080 Running UTX-32 Release 1.3, and and a VAX-11/780 running 4.2bsd. Please address correspondence concerning untamo to "doc" on this machine; the original author has left Purdue, but Craig Norborg (aka "doc") is reasonably familiar with the program. -- Rich Kulawiec, pucc-j!rsk, rsk@j.cc.purdue.edu, rsk@purdue-asc.arpa Jonathan M. Bresler jmb@kryten.atinc.com | Analysis & Technology, Inc. | 2341 Jeff Davis Hwy play go. | Arlington, VA 22202 ride bike. hack FreeBSD.--ah the good life | 703-418-2800 x346