Subject: Re: accouting info
To: Phil Knaack <flipk@ncremp.ag.iastate.edu>
From: None <Chris_G_Demetriou@NIAGARA.NECTAR.CS.CMU.EDU>
List: current-users
Date: 01/11/1996 01:38:21
> >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. 
> 
> >I really liked IRIX's habit of making a lastlogin file for each user.
> 
> 	% last -5 USERNAME

not only is this answer not the best way to do it, it doesn't work
(!!) for users who log in infrequently compared to the wtmp rotation
time...

lastlog is the way to go.


chris