Find the answer to your Linux question:
Results 1 to 3 of 3
Hi, for a audit script I'm developing, I'd like to get a summary of failed local user login attempts (not sshd failed logins) (wrong password, user does not exist). They ...
  1. #1
    Just Joined!
    Join Date
    Aug 2005
    Posts
    99

    Audit failed local user login

    Hi,

    for a audit script I'm developing, I'd like to get a summary of
    failed local user login attempts (not sshd failed logins) (wrong password,
    user does not exist).
    They are not logged in /var/log/messages

    Is there a log file or a command for this?

    Thanks,

    Marinus.

  2. #2
    Linux Guru Vergil83's Avatar
    Join Date
    Mar 2004
    Posts
    2,408
    Try
    Code:
     lastb -f /var/log/btmp
    lastb(1): of last logged in users - Linux man page
    Brilliant Mediocrity - Making Failure Look Good

  3. #3
    Just Joined!
    Join Date
    Aug 2005
    Posts
    99
    Hi Vergil,

    yes that works on Debian but..

    do you know a Linux wide equivalent? This script will be deployed to various distributions and for example on SuSE /var/log/btmp is not available.
    Even if you create it and set the right permissions it is not written to.

    Marinus.

Posting Permissions

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