Ask Your Question

Where is the PAM log file located on Fedora 20?

asked 2014-09-18 22:58:13 -0500

updated 2014-09-19 01:35:09 -0500

I need to setup fail2ban on my systems, and I can't get the jail [pam-generic] setup. I can't find the log file for PAM, that is failed login attempts, I don't quite understand what PAM is yet but it seems important.

So where is the "pam log file" that I need in my fail2ban setup?

I have found this but it doesn't describe precisely what the log file is, just comes with a sort of suggestion. Is that the correct log file: /var/log/secure ?


This would suggest it's the rigth log file:

Status for the jail: pam-generic
|- Filter
|  |- Currently failed: 5
|  |- Total failed:     2670
|  `- File list:        /var/log/secure
`- Actions
   |- Currently banned: 37
   |- Total banned:     37
   `- Banned IP list:
edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2014-09-19 02:37:36 -0500

Rajat gravatar image

I have follow as:

Edit /etc/pam.d/system-auth file, enter: # vi /etc/pam.d/system-auth

auth required no_magic_root account required deny=3 no_magic_root lock_time=1

tailf /var/log/secure |grep -i Failed

you can give try on. kindly let me know

edit flag offensive delete link more


I can't edit that file, it says at the top:

# This file is auto-generated.
# User changes will be destroyed the next time authconfig is run.
somethingSomething gravatar imagesomethingSomething ( 2014-09-19 16:48:00 -0500 )edit

Question Tools

1 follower


Asked: 2014-09-18 22:58:13 -0500

Seen: 555 times

Last updated: Sep 19 '14