Find the answer to your Linux question:
Results 1 to 4 of 4
does anybody know how to read the /var/log/lastlog file? I can read the wtmp with last or who. How about lastlog. anybody? thanks in advance...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Nov 2008
    Posts
    9

    how to read /var/log/lastlog file


    does anybody know how to read the /var/log/lastlog file? I can read the wtmp with last or who. How about lastlog. anybody? thanks in advance

  2. #2
    Just Joined!
    Join Date
    Dec 2008
    Posts
    39
    you can read using lastlog

  3. #3
    Just Joined!
    Join Date
    Nov 2008
    Posts
    9
    lastlog gives me this
    root@server:/var/log# lastlog
    Username Port From Latest
    root pts/0 client Mon Dec 1 16:04:21 -0600 2008
    daemon **Never logged in**
    bin **Never logged in**
    sys **Never logged in**
    sync **Never logged in**
    games **Never logged in**
    man **Never logged in**
    lp **Never logged in**
    mail **Never logged in**
    news **Never logged in**
    uucp **Never logged in**
    proxy **Never logged in**
    www-data **Never logged in**
    backup **Never logged in**
    list **Never logged in**
    irc **Never logged in**
    gnats **Never logged in**
    libuuid **Never logged in**
    dhcp **Never logged in**
    syslog **Never logged in**
    klog **Never logged in**
    mysql **Never logged in**
    bind **Never logged in**
    dovecot **Never logged in**
    postfix **Never logged in**
    sshd **Never logged in**
    postgres **Never logged in**
    user1 tty1 Mon Nov 10 14:58:48 -0600 2008
    user2 pts/1 localhost Mon Nov 17 14:38:05 -0600 2008

    the file should be bigger than that right. this is a huge file

  4. #4
    Just Joined!
    Join Date
    Dec 2008
    Posts
    39
    well for that i have no idea but you should understand the /var/log/lastlog is not a text file so you can expect the filesize to be big or small .

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •