How to disable password quality check without affecting passwd command?

Posted on

I'm running RHEL 8.9 and when i try to create password for the user with 'passwd' commands i'm getting this message:
BAD PASSWORD: The password fails the dictionary check - it is too simplistic/systematic

To disable password quality check i followed the instructions in the article below:
https://access.redhat.com/solutions/5575761

However when commenting the lines "pam_pwquality.so" and "pam_unix.so sha512" in "/etc/pam.d/system-auth" file the command passwd fails and i'm getting a new message:
passwd: Authentication token manipulation error

How i can disable password quality check without facing this issue?

Responses