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

Re: Calculating Last Login on Unix

Thread Previous | Thread Next
Adam Morton
April 29, 2002 11:40
Re: Calculating Last Login on Unix
Message ID:

> On Monday, April 29, 2002, at 10:58 , 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 Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About