passwd: authentication information cannot be recovered : How to resolve ?

While trying to change user password on linux server i got the below error.

error : passwd: Authentication information cannot be recovered

# passwd mades
Changing password for user mades.
passwd: Authentication information cannot be recovered

I tried to change as my user login also but got the below error

mades> passwd mades
 passwd: Authentication token manipulation error

Then i found that in /etc/pam.d/system-auth there is a entry missing. I added the below entry then its got resolved.

"password    sufficient   /lib/security/$ISA/ remember=6

This above entry we need to add in /etc/pam.d/system-auth file. Normally the below 4 lines should be there in system-auth file.

password    sufficient md5 shadow nullok try_first_pass use_authtok remember=6
password    requisite     /lib/security/$ISA/ retry=3 minlen=10 dcredit=-1 try_first_pass
password    sufficient   /lib/security/$ISA/ remember=6
password    required


Post a Comment

Blogger Tips and TricksLatest Tips And TricksBlogger Tricks