Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 15 May 1996 22:20:49 -0600
From:      Nate Williams <nate@sri.MT.net>
To:        Steve Reid <root@edmweb.com>
Cc:        isp@freebsd.org
Subject:   Re: Logging pppd connect & disconnect
Message-ID:  <199605160420.WAA21638@rocky.sri.MT.net>
In-Reply-To: <Pine.BSF.3.91.960515160554.386B-100000@bitbucket.edmweb.com>
References:  <Pine.BSF.3.91.960515160554.386B-100000@bitbucket.edmweb.com>

next in thread | previous in thread | raw e-mail | index | archive | help
> 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199605160420.WAA21638>