Gangmax Blog

BAD PASSWORD: The password fails the dictionary check

When I run “passwd” command in a Ubuntu “24.10” VM to change the password, it reports “BAD PASSWORD: The password fails the dictionary check - it is based on a dictionary word”. I didn’t encounter this issue in the earlier Ubuntu versions I used. How to make it work as before?

The solution below comes from “ChatGPT“.

1
2
3
4
5
6
7
8
# Edit the configuration file which controls the behavior of "passwd".
sudo vi /etc/pam.d/common-password

# Update the following line:
password requisite pam_pwquality.so retry=3

# to:
password requisite pam_pwquality.so retry=3 minlen=6 dictcheck=0

Comments