pam:pam_passwdqc
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | |||
pam:pam_passwdqc [2016/11/27 19:33] – [PAM - pam_passwdqc] peter | pam:pam_passwdqc [2019/12/01 12:17] (current) – removed peter | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== PAM - pam_passwdqc ====== | ||
- | |||
- | **libpam_ passwdqc** is a PAM module that tests passwords to make sure they are not too weak during password change. | ||
- | |||
- | <WRAP info> | ||
- | The **cracklib** module doesn' | ||
- | </ | ||
- | |||
- | ===== Create the PAM configuration file for passwdqc ===== | ||
- | |||
- | Create a PAM configuration file for passwdqc by issuing the following command: | ||
- | |||
- | <code bash> | ||
- | sudo vi / | ||
- | </ | ||
- | |||
- | and populate it with the following: | ||
- | |||
- | <file bash / | ||
- | Name: passwdqc password strength checking | ||
- | Default: yes | ||
- | Priority: 1024 | ||
- | Conflicts: cracklib [maybe?] | ||
- | Password-Type: | ||
- | Password: | ||
- | requisite pam_passwdqc.so min=disabled, | ||
- | </ | ||
- | |||
- | Now issue the command: | ||
- | |||
- | <code bash> | ||
- | sudo pam-auth-update | ||
- | </ | ||
- | |||
- | and ensure that the passwdqc password strength checking is enabled. | ||
- | |||
- | <WRAP warning> | ||
- | **WARNING**: | ||
- | </ | ||
- | |||
- | |||
- | ===== Set the password strength policy ===== | ||
- | |||
- | Issue the following command: | ||
- | |||
- | <code bash> | ||
- | sudo vi / | ||
- | </ | ||
- | |||
- | and populate it with the following: | ||
- | |||
- | <file bash / | ||
- | password requisite pam_passwdqc.so min=disabled, | ||
- | password [success=1 default=ignore] pam_unix.so obscure use_authtok try_first_pass sha512 | ||
- | |||
- | # here's the fallback if no module succeeds | ||
- | password requisite pam_deny.so | ||
- | # prime the stack with a positive return value if there isn't one already; | ||
- | # this avoids us returning an error just because nothing sets a success code | ||
- | # since the modules above will each just jump around | ||
- | password required pam_permit.so | ||
- | </ | ||
- | |||
- | |||
- | By default, Ubuntu requires a minimum password length of 4 characters, as well as some basic entropy checks. | ||
- | |||
- | The **pam_passwdqc** manpage provides a lot of information, | ||
- | |||
- | Each option can be customized to suit your environment. | ||
- | |||
- | pam_passwdqc has no strange requirements, | ||
- | |||
- | The hashed passwords use a randomly generated salt. | ||
- | |||
- | ===== Examples ===== | ||
- | |||
- | < | ||
- | password | ||
- | </ | ||
pam/pam_passwdqc.1480275207.txt.gz · Last modified: 2020/07/15 09:30 (external edit)