I have used pam_pwquality.so module to enforce the password complexity. But its applying only for selfuser. I mean, If i login into a user(not root) and change the password for that user, complexity rules are applying but if i change the password from root, complexity check is not happening.
I found pam_passwdqc module for RHEL6 to enforce the complexity for root also. Can you suggest me similar for RHEL7 and UBUNTU 14.04. https://access.redhat.com/solutions/23481 https://linux.die.net/man/8/pam_passwdqc
Note: pam_passwdqc is availale for RHEL5&6