table of contents
| PAM_UNIX_NG(8) | pam_unix_ng | PAM_UNIX_NG(8) |
NAME¶
pam_unix_ng - PAM module for traditional password authentication
SYNOPSIS¶
pam_unix_ng.so [...]
DESCRIPTION¶
This is a standard UNIX authentication PAM module which delegates tasks requiring access to /etc/shadow to pwaccessd(8), which allows one to use this module in environments without setuid binaries. If pwaccessd is not running, it tries at first to start it via D-Bus. If this fails, it tries to read the local files as fallback itself.
OPTIONS¶
debug
quiet
nullok
If the application sets the PAM_DISALLOW_NULL_AUTHTOK flag, nullok is ignored in the auth module type.
try_first_pass
use_first_pass
use_authtok
authtok_type=type
minlen=<number>
crypt_prefix=<prefix>
crypt_count=<number>
fail_delay=<milliseconds>
MODULE TYPES PROVIDED¶
All module types (account, auth, password, session) are provided.
RETURN VALUES¶
PAM_SUCCESS
PAM_SERVICE_ERR
PAM_USER_UNKNOWN
PAM_IGNORE
NOTES¶
The shadow(5) Minimum Password Age field (sp_min) get's ignored if pam_unix_ng.so cannot connect with pwaccessd(8).
EXAMPLES¶
An example for a full /etc/pam.d/login:
account required pam_unix_ng.so auth required pam_unix_ng.so password requisite pam_pwquality.so password requisite pam_pwhistory.so use_authtok password required pam_unix_ng.so use_authtok session optional pam_wtmpdb.so session optional pam_lastlog2.so session required pam_unix_ng.so
In this case login(1) verifies the password and that the account is not expired, logs login and logout time to syslog(8) and makes sure, that the password has some kind of quality and the last 10 passwords cannot be reused.
SEE ALSO¶
AUTHOR¶
pam_unix_ng was written by Thorsten Kukuk <kukuk@suse.com>.
| 07/17/2026 | account-utils 1.4.0 |