Find the answer to your Linux question:
Results 1 to 4 of 4
how can i view the contents of the lastlog file? i opened it with a text editor and all i can see are garbled texts. it seems the file is ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Dec 2005
    Posts
    10

    lastlog and faillog


    how can i view the contents of the lastlog file? i opened it with a text editor and all i can see are garbled texts. it seems the file is binary (i may be wrong). what application must i use to see its contents?

    also, i can't find faillog in the /var/log/ or anywhere in the system. i'm quite sure i enabled logging of failed logons in the login.defs. any idea here?

  2. #2
    Linux Guru anomie's Avatar
    Join Date
    Mar 2005
    Location
    Texas
    Posts
    1,692
    What distro?

    You should be able to use the
    Code:
    lastlog
    command.

    PAM should log failed logins to /var/log/messages; they will look something like
    Code:
    ... error: PAM: Authentication failure

  3. #3
    Just Joined!
    Join Date
    Dec 2005
    Posts
    10
    Quote Originally Posted by anomie
    What distro?

    PAM should log failed logins to /var/log/messages; they will look something like
    Code:
    ... error: PAM: Authentication failure
    yes i found out it should be run and not opened with a text editor.

    i'm using debian sarge.

    i checked the /var/log/messages file, it contains system logs pertaining to boot up and none for failed logs. any more ideas?

  4. #4
    Linux Guru anomie's Avatar
    Join Date
    Mar 2005
    Location
    Texas
    Posts
    1,692
    Unfortunately I do not know debian. Surely there is an expert hanging around who can help.

Posting Permissions

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