README 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. pam_pwhistory — PAM module to remember last passwords
  2. ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
  3. DESCRIPTION
  4. This module saves the last passwords for each user in order to force password
  5. change history and keep the user from alternating between the same password too
  6. frequently.
  7. This module does not work together with kerberos. In general, it does not make
  8. much sense to use this module in conjunction with NIS or LDAP, since the old
  9. passwords are stored on the local machine and are not available on another
  10. machine for password history checking.
  11. OPTIONS
  12. debug
  13. Turns on debugging via syslog(3).
  14. use_authtok
  15. When password changing enforce the module to use the new password provided
  16. by a previously stacked password module (this is used in the example of the
  17. stacking of the pam_passwdqc module documented below).
  18. enforce_for_root
  19. If this option is set, the check is enforced for root, too.
  20. remember=N
  21. The last N passwords for each user are saved in /etc/security/opasswd. The
  22. default is 10. Value of 0 makes the module to keep the existing contents of
  23. the opasswd file unchanged.
  24. retry=N
  25. Prompt user at most N times before returning with error. The default is 1.
  26. authtok_type=STRING
  27. See pam_get_authtok(3) for more details.
  28. EXAMPLES
  29. An example password section would be:
  30. #%PAM-1.0
  31. password required pam_pwhistory.so
  32. password required pam_unix.so use_authtok
  33. In combination with pam_passwdqc:
  34. #%PAM-1.0
  35. password required pam_passwdqc.so config=/etc/passwdqc.conf
  36. password required pam_pwhistory.so use_authtok
  37. password required pam_unix.so use_authtok
  38. AUTHOR
  39. pam_pwhistory was written by Thorsten Kukuk <kukuk@thkukuk.de>