When does wtmp reset?
Christian Zahl
czahl at opal.cs.tu-berlin.de
Fri May 24 08:39:48 AEST 1991
tpm-sprl!tpm at uunet.uu.net (Terence P. Ma) writes:
>UNIX-gurus:
>While looking over the earlier question of how to look up when someone was
>last logged in, I see that the command "last" (on my SS1+; SunOS4.1.1) is
>appropriate. However, whenever I type "last" I note that wtmp is started at
>the same time as the earliest login of that particular day. I am suspecting
>that this is because I have the accounting program run in the middle of the
>night and it resets wtmp (is this correct? -- couldn't find it in the any
>manual entry).
The fact is quiet right. There is no automatic mechanism to remove old
entries. The only way is to remove it with an own written program or by
removing the wtmp and creating a new empty one.
helps?, Chris
More information about the Comp.unix.questions
mailing list