pam_usertype (8) Linux Manual Page
pam_usertype – check if the authenticated user is a system or regular account
Synopsis
- pam_usertype.so [flag…] {condition}
Description
The module should be given only one condition as module argument. Authentication will succeed only if the condition is met.
Options
The following flags are supported:
use_uid
- Evaluate conditions using the account of the user whose UID the application is running under instead of the user being authenticated.
audit
- Log unknown users to the system log.
Available conditions are:
issystem
- Succeed if the user is a system user.
isregular
- Succeed if the user is a regular user.
Module Types Provided
All module types (account, auth, password and session) are provided.
Return Values
PAM_SUCCESS
- The condition was true.
PAM_BUF_ERR
- Memory buffer error.
PAM_CONV_ERR
- The conversation method supplied by the application failed to obtain the username.
PAM_INCOMPLETE
- The conversation method supplied by the application returned PAM_CONV_AGAIN.
PAM_AUTH_ERR
- The condition was false.
PAM_SERVICE_ERR
- A service error occurred or the arguments can’t be parsed correctly.
PAM_USER_UNKNOWN
- User was not found.
Examples
Skip remaining modules if the user is a system user:
-
account sufficient pam_usertype.so issystem
See Also
login.defs(5), pam(8)
Author
Pavel Březina <pbrezina [at] redhat.com>
