Re: Need script to extract from /etc/security/lastlog -> list of users and their la
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Unix and Linux reviews > Free Unix support > Unix administration > Re: Need script to extract from /etc/security/lastlog -> list of users and their la




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

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


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
12-17-04 12:45 AM

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





[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 01:02 PM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register