SUMMARY: list of last login times for all accounts ?

From: Brehl, Blake (Blake.Brehl@anritsu.com)
Date: Fri Feb 07 2003 - 13:31:14 EST


The consensus was using the "last" command which displays content of the
/usr/adm/wtmp file. You can also use some options of "who", like "who
/usr/adm/wtmp". Unfortunately, there's only a weeks worth of content, due
to the root crontab entry:

0 2 * * 0 /usr/lbin/logclean /var/adm/wtmp > /dev/null

Best Regards, Blake

>-----Original Message-----
>From: Brehl, Blake
>Sent: Friday, February 07, 2003 8:37 AM
>To: Tru64 Mailing List (tru64-unix-managers@ornl.gov)
>Subject: list of last login times for all accounts ?
>
>
>Hello Guru's,
>
>Is there a way to generate a list of the the last login times
>for all accounts on the server, similar to the message you
>receive when you login:
>
>login: some_account
>Password:
>Last login: Fri Feb 7 08:12:00 PST 2003 from some_IP
>
>Hopefully in a shell script?
>
>Our 1st requirement is for a C2 enabled server. Also have
>requirements for C1 boxes. Were running Tru64UNIX 5.1 pk1 and
>5.1A pk1.
>
>Best Regards,
>
>Blake Brehl
>Sr. DBA
>Anritsu Company United States
>Morgan Hill, CA
>

This message is intended for the use of the individual/entity to whom it is addressed. This message may contain privileged information exempt from disclosure. If you are not the addressee, distribution or copying of this message, or dissemination of the information contained herein is strictly prohibited. If you should receive this message in error, please destroy it, or return to sender, Thank You



This archive was generated by hypermail 2.1.7 : Sat Apr 12 2008 - 10:49:07 EDT