{ 5 comments… read them below or add one }

1 Aaron C December 8, 2011 at 8:59 pm

From the top of /etc/pam.d/system-auth:

#%PAM-1.0
# This file is auto-generated.
# User changes will be destroyed the next time authconfig is run.

Is there another place these options should be set so that authconfig does not clobber them? Right now, as a work around, I am going to `chattr +i /etc/pam.d/system-auth`.

Thanks,
Aaron

Reply

2 Yongzhi Pan January 8, 2012 at 5:39 am

Aaron C, Just edit this file and do not use authconfig.

It should be noted this will not effect for ssh remote login. You should put it in `sshd’ pam config file for this.

Reply

3 Yongzhi Pan January 8, 2012 at 6:23 am

“Append following AUTH configuration to /etc/pam.d/system-auth file”

This does not work. I have tested it. Even if the fails are recorded, login is not denied at all. The modules are tried in the order list. You have to prepend it before any ‘auth’ to use it.

Another note, we should be using the newer pam_tally2.so module.

Reply

4 tally June 7, 2012 at 5:41 am

pam_tally tool shows number of bad attempts by a user by using /var/log/faillog database. And after lockout time expires, with a correct login attempt count gets cleared. can someone tell me is there any way I can clear tally account automatically after the lockout time expires for a user.
I want to clear tally automatically once lockout time expires, don’t want to wait for user to login again with correct credentials.
Any help is highly appreciated.
Thanks

Reply

5 David March 5, 2013 at 9:54 am

Before doing this have a quick look in /lib64/security and check that there is a pam_tally.so file in there as you may need to use pam_tally2.so instead.
If in doubt add the line:
auth sufficient pam_tally.so onerr=fail deny=5 unlock_time=21600
to the system-auth file instead, then su or login in and check /var/log/secure for error messages.
You can change the sufficient to required if pam isn’t reporting errors.
That should save you getting locked out of the root account…

Reply

Leave a Comment

You can use these HTML tags and attributes for your code and commands: <strong> <em> <ol> <li> <u> <ul> <blockquote> <pre> <a href="" title="">
What is 7 + 9 ?
Please leave these two fields as-is:
Solve the simple math so we know that you are a human and not a bot.




Tagged as: , , , , , , , , , ,

Previous post:

Next post: