|Main index||Section 5||Options|
If none of these locations contains a policy for the given service, the " other" policy is used instead, if it exists.
Entries in per-service policy files must be of one of the two forms below:
facility control-flag module-path [arguments ...] facility include other-service-name
Entries in pam.conf-style policy files are of the same form, but are prefixed by an additional field specifying the name of the service they apply to.
In both cases, blank lines and comments introduced by a ‘#’ sign are ignored, and the normal shell quoting rules apply. The precise details of how the file is tokenized are described in openpam_readword(3).
The facility field specifies the facility the entry applies to, and is one of:
|auth||Authentication functions ( pam_authenticate(3), pam_setcred(3) )|
|Account management functions (pam_acct_mgmt(3))|
|Session handling functions ( pam_open_session(3), pam_close_session(3) )|
|Password management functions (pam_chauthtok(3))|
The control-flag field determines how the result returned by the module affects the flow of control through (and the final result of) the rest of the chain, and is one of:
|If this module succeeds, the result of the chain will be success unless a later module fails. If it fails, the rest of the chain still runs, but the final result will be failure regardless of the success of later modules.|
|If this module succeeds, the result of the chain will be success unless a later module fails. If the module fails, the chain is broken and the result is failure.|
|If this module succeeds, the chain is broken and the result is success. If it fails, the rest of the chain still runs, but the final result will be failure unless a later module succeeds.|
|If this module succeeds, the chain is broken and the result is success. If it fails, the rest of the chain still runs, but the final result will be failure regardless of the success of later modules.|
|If this module succeeds, the result of the chain will be success unless a later module fails. If this module fails, the result of the chain will be failure unless a later module succeeds.|
The module-path field specifies the name or full path of the module to call. If only the name is specified, the PAM library will search for it in the following locations:
The remaining fields, if any, are passed unmodified to the module if and when it is invoked.
The include form of entry causes entries from a different chain (specified by other-system-name) to be included in the current one. This allows one to define system-wide policies which are then included into service-specific policies. The system-wide policy can then be modified without having to also modify each and every service-specific policy.
Take care not to introduce loops when using include rules, as there is currently no loop detection in place.
|authtok_prompt=prompt , oldauthtok_prompt=prompt , user_prompt=prompt|
|These options can be used to override the prompts used by pam_get_authtok(3) and pam_get_user(3).|
|This option controls whether pam_get_authtok(3) will allow the user to see what they are typing.|
|These options control pam_get_authtok(3)'s use of cached authentication tokens.|
X/Open Single Sign-On Service (XSSO) - Pluggable Authentication Modules, June 1997.
The OpenPAM library is maintained by Dag-Erling Sm/orgrav <Mt firstname.lastname@example.org>.
|PAM.CONF (5)||February 24, 2019|
|Main index||Section 5||Options|
|“||On two occasions I have been asked [by members of Parliament], 'Pray, Mr. Babbage, if you put into the machine wrong figures, will the right answers come out?' I am not able rightly to apprehend the kind of confusion of ideas that could provoke such a question.||”|
|— Charles Babbage|