Language and Page Formatting Options
220.127.116.11. Control Flag
All PAM modules generate a success or failure result when called. Control flags tell PAM what do with the result. Modules can be stacked in a particular order, and the control flags determine how important the success or failure of a particular module is to the overall goal of authenticating the user to the service.
There are four predefined control flags:
required— The module result must be successful for authentication to continue. If the test fails at this point, the user is not notified until the results of all module tests that reference that interface are complete.
requisite— The module result must be successful for authentication to continue. However, if a test fails at this point, the user is notified immediately with a message reflecting the first failed
sufficient— The module result is ignored if it fails. However, if the result of a module flagged
sufficientis successful and no previous modules flagged
requiredhave failed, then no other results are required and the user is authenticated to the service.
optional— The module result is ignored. A module flagged as
optionalonly becomes necessary for successful authentication when no other modules reference the interface.
The order in which
requiredmodules are called is not critical. Only the
requisitecontrol flags cause order to become important.
A newer control flag syntax that allows for more precise control is now available for PAM.
pam.dman page, and the PAM documentation, located in the
/usr/share/doc/pam-<version-number>/directory, where <version-number> is the version number for PAM on your system, describe this newer syntax in detail.