Users not logged in for last 90 days

Hi,

How to find the users who did not login into a UNIX box (thru ssh/ftp or any other way) for last 90 days?

I think of using "finger" or "last" command to findout each user's last login and then find number of days between today and that day. Is there any other better way or anyone prepared it already ready to use?

Pls advise
TIA
Reddy

There are files (depending on the age of your OS and flavor of UNIX)
in /var/adm:
utmp, wtmp, or utmpx

These files have login information. Start with man utmpx. Most of the man pages come with a bit of sample C code to search the files.