When a user last logged in
Hello!
what command or script would I use so that when a user logs in, it will display the last time that user logged in to the system. Only thing I can get close is 'finger -l root' but that only does for when root logs in and adding it to /etc/profile will only show the last time 'root' logged in, even if you log in with another username. I want to use a variable like $USER for example, so it will check the log file '/var/adm/lastlog'. I've spent hours on this one. Man pages, internet and all. I'm stumped on this one.
Cheers,
Nigel

