In ESX , passwd: authentication information cannot be recovered

In ESX , passwd: authentication information cannot be recovered

The ESX box has AD authentication.

I was getting error when I am trying to reset user password
by using command “passwd user_name”
Whenever U get this error “passwd: authentication information cannot be recovered”,it means something is wrong in ur some /etc/pam.d files.

In my case I found that ,it was /etc/pam.d/system-auth file.

So I commented some lines.
Below is the screenshot.

[root@Server pam.d]# vi system-auth
#%PAM-1.0
#auth required pam_tally.so deny=5
#account required pam_tally.so
#password sufficient pam_unix.so remember=12 md5 shadow nullok try_first_pass use_authtok

account required pam_per_user.so /etc/pam.d/login.map
auth required pam_per_user.so /etc/pam.d/login.map
password required pam_per_user.so /etc/pam.d/login.map
session required pam_per_user.so /etc/pam.d/login.map

Issue is resolved now.

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.