1PAM_PWHISTORY(8)               Linux-PAM Manual               PAM_PWHISTORY(8)
2
3
4

NAME

6       pam_pwhistory - PAM module to remember last passwords
7

SYNOPSIS

9       pam_pwhistory.so [debug] [use_authtok] [enforce_for_root] [remember=N]
10                        [retry=N] [authtok_type=STRING]
11                        [conf=/path/to/config-file]
12

DESCRIPTION

14       This module saves the last passwords for each user in order to force
15       password change history and keep the user from alternating between the
16       same password too frequently.
17
18       This module does not work together with kerberos. In general, it does
19       not make much sense to use this module in conjunction with NIS or LDAP,
20       since the old passwords are stored on the local machine and are not
21       available on another machine for password history checking.
22

OPTIONS

24       debug
25           Turns on debugging via syslog(3).
26
27       use_authtok
28           When password changing enforce the module to use the new password
29           provided by a previously stacked password module (this is used in
30           the example of the stacking of the pam_passwdqc module documented
31           below).
32
33       enforce_for_root
34           If this option is set, the check is enforced for root, too.
35
36       remember=N
37           The last N passwords for each user are saved. The default is 10.
38           Value of 0 makes the module to keep the existing contents of the
39           opasswd file unchanged.
40
41       retry=N
42           Prompt user at most N times before returning with error. The
43           default is 1.
44
45       authtok_type=STRING
46           See pam_get_authtok(3) for more details.
47
48       conf=/path/to/config-file
49           Use another configuration file instead of the default
50           /etc/security/pwhistory.conf.
51
52       The options for configuring the module behavior are described in the
53       pwhistory.conf(5) manual page. The options specified on the module
54       command line override the values from the configuration file.
55

MODULE TYPES PROVIDED

57       Only the password module type is provided.
58

RETURN VALUES

60       PAM_AUTHTOK_ERR
61           No new password was entered, the user aborted password change or
62           new password couldn't be set.
63
64       PAM_IGNORE
65           Password history was disabled.
66
67       PAM_MAXTRIES
68           Password was rejected too often.
69
70       PAM_USER_UNKNOWN
71           User is not known to system.
72

EXAMPLES

74       An example password section would be:
75
76           #%PAM-1.0
77           password     required       pam_pwhistory.so
78           password     required       pam_unix.so        use_authtok
79
80
81       In combination with pam_passwdqc:
82
83           #%PAM-1.0
84           password     required       pam_passwdqc.so    config=/etc/passwdqc.conf
85           password     required       pam_pwhistory.so   use_authtok
86           password     required       pam_unix.so        use_authtok
87
88
89

FILES

91       /etc/security/opasswd
92           File with password history
93

SEE ALSO

95       pwhistory.conf(5), pam.conf(5), pam.d(5), pam(8) pam_get_authtok(3)
96

AUTHOR

98       pam_pwhistory was written by Thorsten Kukuk <kukuk@thkukuk.de>
99
100
101
102Linux-PAM Manual                  01/19/2023                  PAM_PWHISTORY(8)
Impressum