Path: utzoo!attcan!uunet!cos!hqda-ai!jay From: jay@hqda-ai.ARPA (Jay Hiser) Newsgroups: comp.unix.questions Subject: Keeping a login history with System VR2 Summary: SysVR2 doesn't have last, but I need to identify oldaccounts Keywords: wtmp, last, logins, security Message-ID: <7286@hqda-ai.ARPA> Date: 14 Jul 88 20:18:51 GMT Organization: CBSI@Washington, D.C. Lines: 15 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,