(Resolved) passwd failed preliminary check by password service

Error : passwd failed preliminary check by password service

Error : Password Module Unknown Error

Sample Error Output :

Resolution/FIX :

Before doing the below steps its highly recomended that you Backup your /etc/pam.d/passwd  file

Once you take backup then replace all the lines in file with below one
#%PAM-1.0
auth required pam_deny.so
password sufficient pam_unix.so md5 shadow
password required pam_deny.so
account required pam_deny.so

 

The same above FIX can be also applicable for the below error

$ passwd user

$ cannot change password: module unknown

Some times even after setting password using passwd command  will fail giving error “Password module unknown”

 

Spread the love

Leave a Reply

Your email address will not be published. Required fields are marked *