CPM - Unix Password Management - su: Bad Password
Symptom
During password change process, receive error:
"First login - Failed to verify user after switching. code: 8008"
Reviewing the debug login information and console.log or expect.log for the plugin, you will see that following process and error returned:
send: sending "su - root\r" to { exp5 }
su - root
Password:
send: sending "****\r" to { exp5 }
su:
incorrect password
OR
su:
Bad Password
This is usually an indication that the password stored in the Vault, and the password on the target are not in sync.
After confirming that the passwords do match; the issue continues.
The issue is actually that the user performing the su action does not have the correct permissions to perform the task,
Note that the error received is not helpful in this case, with a erroneous error description of "su: Bad Password"
Environment
Linux and Unix Environments.
Accounts/Platform configured with a Logon, or Reconcile User, that use "su" in order to change or verify password.
Cause
Reconcile user does not have the correct permission to su to root.
Resolution
Confirm that the user has the correct permissions to su to root.
This can include the following:
Changes to /etc/pam.d/su
Commenting out:
auth required pam_wheel.so use_uid