From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <96078609810477.tru64-unix-managers.marc@archive.invalid> From: "Cenon B.C. Marana, Jr." Date: Wed, 19 Mar 1997 02:34:14 +0000 To: tru64-unix-managers Subject: SUMMARY: "last" command does not give updated logs... X-MARC-Message: https://marc.info/?l=tru64-unix-managers&m=96078609810477 Thanks to the following who immediately went to the rescue: Miguel Avillez Simon Tardell Ing. Rosa Isela Gonzalez Alvarez 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... >Login name: marie In real life: The Cookie Monster! >Last login Sun Mar 16 06:24 on ttyp2 from 165.220.28.234 >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 :)