Benches macOS

5

Last login command in Terminal is not listing recent logins

apple Verified

Imported from the Apple Support Forums via the Wayback Machine 🔗

Hi, just about a week ago I noticed that the Terminal command "last login <username>" is not listing all logins. The list's latest entry is 28th of February. This is incorrect, as every single day since then I have logged out and in. I also shut down my computer each night, but the command "reboot" lists 28th Feb as the last entry. This involves other user accounts too and not just one. I haven't updated macOS in February, and I can't think of anything I've done that could have caused this.

Can anyone tell what could be going on and how can I fix the log?

5 replies

Sign in or join Beachball Help to reply.

  1. 0

    macjack

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    What happens if you use only the last command?

    last

  2. 0

    macjack

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    Feb 28th seems reasonable as a start date, but I think you'd be seeing your shutdowns and logouts.

    See if sudo makes any difference:

    https://superuser.com/questions/1024867/terminal-last-command-doesnt-display-login-history

  3. 0

    ikemitsu

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    I now run sudo chmod 644 /private/var/log/system.lo but last and last login still list 28th Feb as the latest. Prior to 28th Feb I've seen all my logins and outs. Kept an eye on them actually so I know how this should work.

  4. 0

    ikemitsu

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    It's the same, 28th Feb is the latest entry.

  5. 0

    ikemitsu

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    Just a note, I need to login as an administrator in Terminal to be able to list these account logins. Also sudo last and sudo last login give the 28th Feb.