Results 1 to 3 of 3

Thread: [SOLVED] Lastlog command

  1. #1
    Join Date
    Jul 2008
    Beans
    3

    [SOLVED] Lastlog command

    When I run the command "lastlog" under Ubuntu 7.10, it shows user2 **never logged in**. However, I know user2 has logged in as recently as yesterday. I tried running the command as sudo, but this did not make a difference.

    I'm running Fedora in VM, and the lastlog command works fine in Fedora, so I assume I do not have something set correctly in Ubuntu. Any ideas or suggestions?

    Thanks,

    Troy

  2. #2
    Join Date
    Apr 2008
    Location
    Southern California, USA
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: Lastlog command

    I have never run that command. After running it, it shows that my login was several days ago. I'm setup with auto login, so I think that lastlog info is when I used the Ctrl+Alt+F1 and logged in a virtual terminal.

  3. #3
    Join Date
    Jul 2008
    Beans
    3

    Re: Lastlog command

    Thanks VMC for your response. I tried what you suggested, logging in via virtual terminal rather than X, and you're correct. When I log in through the virtual terminal, the login name is logged and can be read from with the lastlog command.

Bookmarks

Posting Permissions

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