Subject: Re: accouting info
To: John M Vinopal <banshee@gabriella.resort.com>
From: Todd Kover <kovert@umiacs.UMD.EDU>
List: current-users
Date: 01/10/1996 23:41:33
 > Is there a clean way under netbsd to determine the last login time of 
 > your users?  The way I figure it, you can search utmp records, check the 
 > read time on directory or .login. 

#include <utmp.h>

open /var/log/lastlog

seek to sizeof(struct lastlog)*uid;
read struxt lastlog.
look at ll_time.

 > I really liked IRIX's habit of making a lastlogin file for each user.

too many files... :)

-Todd