Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!crdgw1!uunet!convex!egsner!swsrv1!toma From: toma@swsrv1.cirr.com (Tom Armistead) Newsgroups: comp.unix.questions Subject: Re: Log of Dialup Logins Keywords: /etc/wtmp Message-ID: <1991May3.040622.1657@swsrv1.cirr.com> Date: 3 May 91 04:06:22 GMT References: <26731@adm.brl.mil> Organization: Software Services: Garland, Tx Lines: 41 In article <26731@adm.brl.mil> ben@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@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@swsrv1.cirr.com {egsner,letni,ozdaltx,void}!swsrv1!toma