Unix & Linux Asked on December 17, 2021
I installed libpam-pwquality
:
sudo apt-get install libpam-pwquality
And configured /etc/pam.d/common-password
:
password requisite pam_pwquality.so retry=3 minlen=10
password [success=1 default=ignore] pam_unix.so obscure use_authtok try_first_pass sha512
password required pam_deny.so
password required pam_permit.so
Then when I ran passwd
, I could still set a password of 2 or 3 characters. What was missing?
You need to set the options in pwquality's configuration file, /etc/security/pwquality.conf
.
Answered by Albertus on December 17, 2021
Get help from others!
Recent Answers
Recent Questions
© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP