Log of Dialup Logins

Tom Armistead toma at swsrv1.cirr.com
Fri May 3 14:06:22 AEST 1991


In article <26731 at adm.brl.mil> ben at syska.com writes:
>A colleage has a need to find out whether a log is maintained of
>dialup logins.  I don't even know if/ where the general log of user
>logins is maintained.  Can some one give us some info on this?
> 
>Please reply to this account or send mail to:
> 
>uu.psi.com!syska.com!ela
> 
> 
>Thanks,
> 
> 
>Ben
> 
>
>_______________________________________________________________________
>Ben Olasov              ben at syska.com

An entry is written to /etc/wtmp for every process that init starts.  One
record for when the task starts and one when it stops.  This includes getty.

So...  You can run who on /etc/wtmp and get a list of logins back to the
       time when that file was last re-initialized, which is at least every
       day if Process Accounting is running.
       e.g.  $ who /etc/wtmp			# When they logged on
	     $ who -a /etc/wtmp | grep username	# When they logged on and off

If this isn't what you want, I have a daemon process that prints a message to
my terminal whenever someone logs in, it could be easily modified to put the
messages to a file (and print when they log out too).  If you would like a copy
of this, let me know and I'll mail it to you.

p.s. I can only speak for System V Unix's (I've never tried this on with
     others).

Tom
-- 
Tom Armistead - Software Services - 2918 Dukeswood Dr. - Garland, Tx  75040
===========================================================================
toma at swsrv1.cirr.com                {egsner,letni,ozdaltx,void}!swsrv1!toma



More information about the Comp.unix.questions mailing list