I have set minimum password length to 3 on my RHEL 7 system. Still while using passwd I get error:
BAD PASSWORD: The password is shorter than 5 characters.
I have changed following parameters:
In /etc/security/pwquality.conf
:
minlen = 3
And in /etc/login.defs
:
PASS_MIN_LEN 3
How passwd is getting 5 as minimum length? Which config file I am missing?