Results 1 to 5 of 5

Thread: log in log

  1. #1
    Join Date
    Nov 2009
    Location
    Gainesville, VA
    Beans
    459
    Distro
    Ubuntu Studio 12.04 Precise Pangolin

    log in log

    Hello,

    What file is written to when a user has logged into the system? I'm assuming it's in var/log - but which file? Also, does said file capture failed attempts and track the IP?

    Thank you!

  2. #2
    Join Date
    Jun 2011
    Location
    Atlanta Georgia
    Beans
    1,769
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: log in log

    The file /var/log/auth.log (/var/log/secure on RHEL based systems) should contain most of your failed logins.

  3. #3
    Join Date
    Nov 2009
    Location
    Gainesville, VA
    Beans
    459
    Distro
    Ubuntu Studio 12.04 Precise Pangolin

    Re: log in log

    Cool - thank you for your reply. That is exactly what I was looking for. Some D-bag is attempting to brute-force their way into an ssh session. Only thing I can't figure is how is my system allowing more then three attempts. I thought it failed out after three.

  4. #4
    Join Date
    Jun 2011
    Location
    Atlanta Georgia
    Beans
    1,769
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: log in log

    It will only fail after 3 attempts if you have enabled pam-tally in /etc/pam.d/system-auth

    You can also consider iptables rate limiting. Fail2ban or denyhosts.

    Hope this helps.

  5. #5
    Join Date
    Nov 2009
    Location
    Gainesville, VA
    Beans
    459
    Distro
    Ubuntu Studio 12.04 Precise Pangolin

    Re: log in log

    It does. If for no other reason, I didn't know about the pam.d directory, and I can now learn. Thanks again.

    Cheers.

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
  •