You are not logged in.

#1 2011-07-01 11:57:24

edenyard
Member
From: East Anglia, UK
Registered: 2011-05-09
Posts: 23

'last' shows duplicate login entries

I hope that this is the right place to post this plea for help!

When I run the 'last' command to see who has been logging in to my Arch system (there are a few different users who do), I always get duplicate entries for text-console logins.

Here's a listing from 'last' The remote logins (using SSH) from other machines are only shown once, as are X logins (remote or on this machine). However, logins to a text console on this machine get duplicate entries:

root     pts/3        old.edenyard.net Fri Jul  1 12:42 - 12:43  (00:00)   
guest    pts/0                         Fri Jul  1 12:20 - 12:21  (00:00)   
root     pts/1        old.edenyard.net Fri Jul  1 12:16 - 12:16  (00:00)   
root     tty1                          Fri Jul  1 12:03 - 12:21  (00:18)   
root     tty1                          Fri Jul  1 12:03 - 12:03  (00:00)   
root     tty3                          Fri Jul  1 11:59   still logged in   
root     tty3                          Fri Jul  1 11:59 - 11:59  (00:00)   
root     tty2                          Fri Jul  1 11:54 - 11:58  (00:04)   
root     tty2                          Fri Jul  1 11:54 - 11:54  (00:00)   
robyn    old.edenyard                  Fri Jul  1 11:54 - 12:15  (00:21)   
gerald   :0                            Fri Jul  1 11:51   still logged in   
root     tty1                          Fri Jul  1 11:51 - 11:58  (00:07)   
root     tty1                          Fri Jul  1 11:51 - 11:51  (00:00)   
reboot   system boot  2.6.39-ARCH      Fri Jul  1 11:51 - 12:43  (00:52)   
guest    :0                            Fri Jul  1 11:43 - 11:44  (00:00)   

The duplicate entries in the above listing always have the same form: the first entry is the actual length of time that the user was logged in and the second entry always has a logged-in length of 00:00. Something (maybe the 'login' program?) is making two entries when the user logs in, and updating one of them with the length of session when that user logs out again. I have searched both Google and the man pages for help, all to no avail.

This Arch Linux system was fully updated (using 'pacman -Syyu') on 26/6/2011, i.e., within the last week.

Please can someone explain to my why this is happening and how I can stop it?

Many thanks,
Gerald.

Offline

Board footer

Powered by FluxBB