I am trying to play around with PAM.
To start with, i am working with pam_tally module.
I added following line at the top in common-auth file in /etc/pam.d/
auth required pam_tally.so deny=3
After that i logged out.
Now when i try to login, access is denied even though password i enter is correct.
I edit common-auth file again using root account to remove the above mentioned line and i am able to login again.
Not able to understand why i am denied login after editing common-auth file even if password i enter is correct.