Unix administration - Re: Need script to extract from /etc/security/lastlog -> list of users and their la

This is Interesting: Free IT Magazines  
Home > Archive > Unix administration > December 2004 > Re: Need script to extract from /etc/security/lastlog -> list of users and their la





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Re: Need script to extract from /etc/security/lastlog -> list of users and their la
Chris F.A. Johnson

2004-12-16, 7:45 pm

On Thu, 16 Dec 2004 at 23:51 GMT, Michael Vilain wrote:
> In article <32e0g1F3kgu42U3@individual.net>,
> "Chris F.A. Johnson" <cfajohnson@gmail.com> wrote:
>
>
> The problem with using last is that, at least on Solaris, if you recycle
> wtmp regularly on a busy system, last will have only the entries since
> it was recycled. lastlog has a single entry for every login, IIRC.
> It's updated as that account logins in and it's what's printed when you
> login to a terminal session on Solaris "Last login: <date> from <remote>"


last -f /var/log/wtmp.0
last -f /var/log/wtmp.1
........

You can keep as many files as you want; you can change the
frequency of rotation, etc....

> Since this is AIX, there may be differences. I leave that to the OP to
> iron out.
>



--
Chris F.A. Johnson http://cfaj.freeshell.org/shell
========================================
===========================
My code (if any) in this post is copyright 2004, Chris F.A. Johnson
and may be copied under the terms of the GNU General Public License
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com