From owner-freebsd-questions Sat Jan 6 03:40:33 1996 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id DAA13797 for questions-outgoing; Sat, 6 Jan 1996 03:40:33 -0800 (PST) Received: from vector.jhs.local (slip139-92-42-147.emea.ibm.net [139.92.42.147]) by freefall.freebsd.org (8.7.3/8.7.3) with ESMTP id DAA13682 Sat, 6 Jan 1996 03:39:43 -0800 (PST) Received: from localhost (localhost [127.0.0.1]) by vector.jhs.local (8.7.3/8.6.9) with SMTP id LAA00553; Fri, 5 Jan 1996 11:12:33 +0100 (MET) Message-Id: <199601051012.LAA00553@vector.jhs.local> X-Authentication-Warning: vector.jhs.local: Host localhost [127.0.0.1] didn't use HELO protocol To: Joe Greco cc: gestur@islandia.is (Gestur A. Grjetarsson), freebsd-hackers@freebsd.org, freebsd-questions@freebsd.org, admin@islandia.is Subject: Re: prevent paralell modem connection Reply-To: "Julian H. Stacey" Organization: Vector Systems Ltd. (Internet Unix & C Consultants) Address: Holz Strasse 27d, 80469 Munich, Germany Phone: +49.89.268616 Fax: +49.89.2608126 (pending reconfig) Web: http://www.freebsd.org/~jhs/ Mailer: EXMH version 1.6.5 95 12 11 In-reply-to: Your message of "Wed, 03 Jan 1996 11:27:05 CST." <199601031727.LAA13230@brasil.moneng.mei.com> Date: Fri, 05 Jan 1996 11:12:33 +0100 From: "Julian H. Stacey" Sender: owner-questions@freebsd.org Precedence: bulk Hi, Reference: > From: Joe Greco > > > > If so, is there a way to prevent people to be able to get connection on > > the system from two or more places at one time, like if users share their > > accounts, taking two modems and only paying for one account ? > > Sure. Stick a "cron" job in to count the number of times that a user is on > a tty line. Think about something like: > > #! /bin/sh - > > This is of course very simplistic but could be effective if run out of cron, > > This is simpler than the network/X11 pty case, of course.. ;-) > The solution reminds me of the games-user killer I wrote in sh in 1978 on V6, (to zap users playing games, to free ttys for programmer friends), simple but effective, but occasionally went wrong during development, & consumed processor resources. I know of a local ISP here (not FreeBSD I guess) who has some kind of `single line only' login facility (no names, to preserve the innocent ;-) I'm sure one could hack login.c to do a nicer solution, in fact if someone waved real money at me I would :-) Julian -- Julian H. Stacey jhs@freebsd.org http://www.freebsd.org/~jhs/