PAM_USERTYPE(8) | Linux-PAM | PAM_USERTYPE(8) |
pam_usertype - check if the authenticated user is a system or regular account
pam_usertype.so [flag...] {condition}
pam_usertype.so is designed to succeed or fail authentication based on type of the account of the authenticated user. The type of the account is decided with help of SYS_UID_MIN and SYS_UID_MAX settings in /etc/login.defs. One use is to select whether to load other modules based on this test.
The module should be given only one condition as module argument. Authentication will succeed only if the condition is met.
The following flags are supported:
use_uid
audit
Available conditions are:
issystem
isregular
All module types (account, auth, password and session) are provided.
PAM_SUCCESS
PAM_BUF_ERR
PAM_CONV_ERR
PAM_INCOMPLETE
PAM_AUTH_ERR
PAM_SERVICE_ERR
PAM_USER_UNKNOWN
Skip remaining modules if the user is a system user:
account sufficient pam_usertype.so issystem
Pavel Březina <pbrezina@redhat.com>
09/03/2021 | Linux-PAM |