develooper Front page | perl.beginners | Postings from April 2002

Re: Calculating Last Login on Unix

Thread Previous | Thread Next
From:
Adam Morton
Date:
April 29, 2002 11:40
Subject:
Re: Calculating Last Login on Unix
Message ID:
00e201c1efad$06002ce0$820c3e12@adamlaptop

> On Monday, April 29, 2002, at 10:58 , gkhgkh@attbi.com wrote:
> [..]
> > ipl of the server and therefore nulls wtmp
> [..]
>
> good God Man! no one uses 'ipl' - it will scare the kiddies....

Is this, like, ancient IBM speak for "reboot"? IPL = "initial program load"?

> That gives me the information I want, the problem is it
> relies on wtmp.  I believe wtmp gets nulled out on an
> ipl of the server and therefore nulls wtmp.  Therefore I
> lose my history.  What I am trying to do is identify
> user IDs that have not been used for say 60 days and get
> rid of them.

Hmm.  On my redhat and solaris boxes, wtmp is automatically logged
elsewhere.  Parsing 'last' for all users would seem to do the trick (for me
at least!)  I am curious as to what platform are you operating here...


Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About