From owner-freebsd-isp Wed May 15 21:20:56 1996 Return-Path: owner-isp Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id VAA22002 for isp-outgoing; Wed, 15 May 1996 21:20:56 -0700 (PDT) Received: from rocky.sri.MT.net (rocky.sri.MT.net [204.182.243.10]) by freefall.freebsd.org (8.7.3/8.7.3) with SMTP id VAA21995 for ; Wed, 15 May 1996 21:20:54 -0700 (PDT) Received: (from nate@localhost) by rocky.sri.MT.net (8.6.12/8.6.12) id WAA21638; Wed, 15 May 1996 22:20:49 -0600 Date: Wed, 15 May 1996 22:20:49 -0600 From: Nate Williams Message-Id: <199605160420.WAA21638@rocky.sri.MT.net> To: Steve Reid Cc: isp@freebsd.org Subject: Re: Logging pppd connect & disconnect In-Reply-To: References: Sender: owner-isp@freebsd.org X-Loop: FreeBSD.org Precedence: bulk > Is there any way to log when users connect and disconnect with pppd? Sure, it's a piece of cake. How do your users startup PPP? On my box they run a little shell script which is customized for each system, so it would be trivial to have it append start/stop entries to a file. Here's my password entry Ptrout:*:812:800:PPP Login for trout:/etc/ppp:/etc/ppp/Login-trout And /etc/ppp/Login-trout #!/bin/sh # # Specific login file for machines who want their stuff hard-coded # PATH=:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin export PATH ACCOUNT_FILE=/etc/ppp/trout.log mesg n stty -tostop echo "Start" `date` >> $ACCOUNT_FILE pppd `hostname`:trout debug echo "Stop" `date` >> $ACCOUNT_FILE Might work. Nate