From: "Cenon B.C. Marana, Jr." <bonn () durian ! usc ! edu ! ph>
To: tru64-unix-managers
Subject: SUMMARY: "last" command does not give updated logs...
Date: Wed, 19 Mar 1997 02:34:14 +0000 [thread overview]
Message-ID: <96078609810477.tru64-unix-managers.marc@archive.invalid> (raw)
Thanks to the following who immediately went to the rescue:
Miguel Avillez <mavillez@ast.man.ac.uk>
Simon Tardell <tardell@particle.kth.se>
Ing. Rosa Isela Gonzalez Alvarez <rgonzale@uacj.mx>
My question:
>It seems that when the "last" command is executed, it still gives an
>*outdated* log... however, when fingering a user, the last login entry is
>updated...
<finger marie>
>Login name: marie In real life: The Cookie Monster!
>Last login Sun Mar 16 06:24 on ttyp2 from 165.220.28.234
<last|pg>
>tpdacles ttyp5 165.220.29.41 Sat Mar 08 22:24 still logged in
>tpdacles ttyp5 165.220.29.41 Sat Mar 08 22:20 - 22:23 (00:02)
>filmer ttyp6 ppp07.mn.usc.edu Sat Mar 08 22:17 still logged in
>msinco ttyp5 ppp06.mn.usc.edu Sat Mar 08 22:09 - 22:17 (00:08)
>Any ideas on how "last" would give the *updated* log? Also, could anyone
>send me the file permissions for utmp and wtmp at /usr/adm directory?
The most common way to go around this problem is to rename the
/var/adm/wtmp file into something else and then touching it (touch wtmp)
-- to create a new one... and that did the trick.
Also, here are the permissions for the utmp and wtmp files.
-rw-r--r-- 1 root adm 5148 Mar 16 11:17 utmp
-rwxr-xr-x 1 adm adm 462540 Mar 16 11:17 wtmp
Best regards,
Bonn
:)
reply other threads:[~1997-03-19 2:34 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox