Keeping a login history with System VR2

Jay Hiser jay at hqda-ai.ARPA
Fri Jul 15 06:18:51 AEST 1988


I suspect that I could get a version of last that I could compile on
my CCI 6/32.   That would be useful, but all I really need is a list
of each users LAST login -- not all of their logins.  My goal is to
identify obsolete accounts.  I don't want to keep my wtmp info for 3
months at a time -- it collects about 50k a day.

Given only my own resources, I'd write a shell script that runs who on
wtmp every day, merges it with an existing list, and keeps only the
latest entry for each user.  That seems to be the quickest and easiest
way to collect my needed info in a useful form.  Not wanting to
reinvent the wheel, though, I'm looking for a shell script that
someone else has already written (probably a neater job than I'd do,
too).  So, if you've got something that your proud of and is useful at
your sys, or some relevant info on this problem, I'd appreciate
hearing from you. 
Thank you,



More information about the Comp.unix.questions mailing list