LinuxCommandLibrary

pam_unix

TLDR

Standard Unix authentication

$ auth required pam_unix.so
copy
Password management
$ password required pam_unix.so sha512 shadow
copy
Session management
$ session required pam_unix.so
copy
Null password check
$ auth required pam_unix.so nullok
copy

SYNOPSIS

pam_unix.so [options]

DESCRIPTION

pam_unix provides standard Unix authentication. Uses /etc/passwd and shadow.
The module handles basic auth. Core PAM component.
pam_unix is standard Unix auth.

PARAMETERS

nullok

Allow empty passwords.
sha512
Use SHA-512 hashing.
shadow
Use shadow passwords.
remember=N
Remember N passwords.
try_first_pass
Use previous password.

CAVEATS

Core PAM module. Configuration critical. Hash algorithm choice.

HISTORY

pam_unix provides traditional Unix authentication via passwd/shadow.

SEE ALSO

pam(8), passwd(5), shadow(5)

Copied to clipboard