This chapter gives you an idea on how to test your new PAM configuration. It is important to think carefully about tests since a wrongly configured PAM may lead to unauthorized access to your computers.
Enabling logging can give you a clue on why your bright ideas do not work. It cannot be said: The Devil is in the detail. The pamtester utility can help you generate log messages. Using systematic testing of PAM configuration cannot be underestimated. Using Expect to drive the pamtester utility, it is possible to create automatic testing.