From owner-freebsd-questions Mon Feb 9 01:07:20 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id BAA21851 for questions-outgoing; Mon, 9 Feb 1998 01:07:20 -0800 (PST) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from panda.hilink.com.au (panda.hilink.com.au [203.8.15.25]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id BAA21837; Mon, 9 Feb 1998 01:07:10 -0800 (PST) (envelope-from danny@panda.hilink.com.au) Received: (from danny@localhost) by panda.hilink.com.au (8.8.5/8.8.5) id UAA23980; Mon, 9 Feb 1998 20:06:55 +1100 (EST) Date: Mon, 9 Feb 1998 20:06:55 +1100 (EST) From: "Daniel O'Callaghan" To: Jason McKay cc: questions@FreeBSD.ORG, isp@FreeBSD.ORG Subject: Re: Please help - session limits In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Mon, 9 Feb 1998, Jason McKay wrote: > We are running FreeBSD 2.2.2-RELEASE and are about to setup an ISP. We Upgrade to 2.2-980208-SNAP or similar. > want our users to have a limit of 2 hours per day. Therefore, we need a > program that will disconnect members of a group after 2 hours and > leave them off until the next day. You need to do this in /etc/ppp/ip-up, if you are using PAP authentication, or intend to. A perl script ip-up can take the ppp tty, look up the user who is logged in, run some other program (ac(1)??) to see if they have been on too long today, and boot them off if so. A similar perl script can be run from cron to see if any users need to be disconnected. You'll probably need to use pppd from 2.2.5 or later. Danny To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe questions" in the body of the message