CPM - Unix Password Management - su: Bad Password

CPM - Unix Password Management - su: Bad Password

137
Created On 11/10/26 11:00 AM - Last Modified 11/10/26 16:08 PM


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 



Actions
  • Print
  • Copy Link

    https://knowledgebase.paloaltonetworks.com/KCSArticleDetail?id=kA1hj0000001SNKCA2&lang=en_US&refURL=http%3A%2F%2Fknowledgebase.paloaltonetworks.com%2FKCSArticleDetail