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

DESCRIPTION

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

OPTIONS

23       debug
24           Turns on debugging via syslog(3).
25
26       use_authtok
27           When password changing enforce the module to use the new password
28           provided by a previously stacked password module (this is used in
29           the example of the stacking of the pam_cracklib module documented
30           below).
31
32       enforce_for_root
33           If this option is set, the check is enforced for root, too.
34
35       remember=N
36           The last N passwords for each user are saved in
37           /etc/security/opasswd. The default is 10. Value of 0 makes the
38           module to keep the existing contents of the opasswd file unchanged.
39
40       retry=N
41           Prompt user at most N times before returning with error. The
42           default is 1.
43
44       authtok_type=STRING
45           See pam_get_authtok(3) for more details.
46

MODULE TYPES PROVIDED

48       Only the password module type is provided.
49

RETURN VALUES

51       PAM_AUTHTOK_ERR
52           No new password was entered, the user aborted password change or
53           new password couldn't be set.
54
55       PAM_IGNORE
56           Password history was disabled.
57
58       PAM_MAXTRIES
59           Password was rejected too often.
60
61       PAM_USER_UNKNOWN
62           User is not known to system.
63

EXAMPLES

65       An example password section would be:
66
67           #%PAM-1.0
68           password     required       pam_pwhistory.so
69           password     required       pam_unix.so        use_authtok
70
71
72       In combination with pam_cracklib:
73
74           #%PAM-1.0
75           password     required       pam_cracklib.so    retry=3
76           password     required       pam_pwhistory.so   use_authtok
77           password     required       pam_unix.so        use_authtok
78
79
80

FILES

82       /etc/security/opasswd
83           File with password history
84

SEE ALSO

86       pam.conf(5), pam.d(5), pam(8)pam_get_authtok(3)
87

AUTHOR

89       pam_pwhistory was written by Thorsten Kukuk <kukuk@thkukuk.de>
90
91
92
93Linux-PAM Manual                  09/19/2013                  PAM_PWHISTORY(8)
Impressum