I would like to configure the no. of times user will be prompted for password(authentication attempts) for login, before dropping the session. Does PAM support this case, if so can you help me out with the configuration required for this ?
If you're trying to control how many times someone will be prompted, rather than how many times they can fail to authenticate, you might have trouble managing this through PAM. For example, ssh has its own config for this:
There is a login counter module for PAM called
On Debian you could add the following lines to
As peterph pointed out, the
Adding the following line to
On Fedora, both lines can be added to
Access to a locked-out