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.
38
39       retry=N
40           Prompt user at most N times before returning with error. The
41           default is 1.
42
43       authtok_type=STRING
44           See pam_get_authtok(3) for more details.
45

MODULE TYPES PROVIDED

47       Only the password module type is provided.
48

RETURN VALUES

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

EXAMPLES

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

FILES

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

SEE ALSO

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

AUTHOR

88       pam_pwhistory was written by Thorsten Kukuk <kukuk@thkukuk.de>
89
90
91
92Linux-PAM Manual                  06/16/2009                  PAM_PWHISTORY(8)
Impressum