Running the lastlog
command correctly lists all users on my system (same as /etc/passwd
entries). However all are marked as **Never logged in**
, including the account I'm currently logged in to. I noticed that my /var/log/lastlog
file is also empty.
Edit: /var/log/lastlog
is not empty, it is a binary file and I was trying to cat
it, causing nothing to display. less
displays a binary file.
Does anyone have any insight as to why this would happen? I've never manually edited /var/log/lastlog
.
Edit: Output of ls -al /var/log/lastlog
:
-rw-rw-r-- 1 root utmp 292584 2010-05-12 18:14 /var/log/lastlog
df
lists 61% free on that filesystemcat
it. But all of the accounts do list Never logged in.lastlog | grep -v Never
produces an empty output.