CPM: SUDO fails when using the out of box Unix plugin with Terminal Plugin Controller (TPC)

CPM: SUDO fails when using the out of box Unix plugin with Terminal Plugin Controller (TPC)

129
Created On 11/10/26 11:02 AM - Last Modified 11/10/26 12:56 PM


Symptom


SUDO fails when using the out of box Unix plugin with Terminal Plugin Controller (TPC)

When trying to reconcile a root account you receive the following error

Invalid prompt or did not receive any prompt. State: "PRSudoResetPass". code: 7001". The third party console log shows "passwd: Only root can specify a user name.
 


Environment


10.4;10.5;11.3;11.4;11.5;11.6;11.7;12.0;12.1;12.2;11.9;11.8;12.4;12.3;12.5;12.6;12.7 Privileged Access Manager (PAM, self-hosted);Privilege Cloud Central Policy Manager (CPM) CPM
TPC


Cause


The prompts/process files for Terminal Plugin Controller (TPC) does not perform SUDO in the same manner as the UnixSSHv3 plugin and therefore has different requirements for the extra accounts. The issue is that the new plugin does not "su" from the logon account to the reconcile account in order to then perform "sudo" as the reconcile account.

Resolution


In order for the TPC plugin to work, the following must be true: 
1. Logon Account of Reconcile Account must have sudoers access. 

The TPC process uses the logon account to issue the sudo command with -u <reconcileaccount> in order to elevate the privileges of the Reconcile account to use the passwd command. 


2. Reconcile Account needs root privileges (UID: 0)

The passwd command used by the reconcile account requires root privileges in order to specify an alternate user.


Additional Information


Details

SYMPTOM:

SUDO fails when using the out of box Unix plugin with Terminal Plugin Controller (TPC)
 
When trying to reconcile a root account you receive the following error:

"Invalid prompt or did not receive any prompt. State: "PRSudoResetPass". code: 7001". The third party console log shows "passwd: Only root can specify a user name."
 
PROBLEM:
 
The prompts/process files for Terminal Plugin Controller (TPC) does not perform SUDO in the same manner as the UnixSSHv3 plugin and therefore has different requirements for the extra accounts. The issue is that the new plugin does not "su" from the logon account to the reconcile account in order to then perform "sudo" as the reconcile account.
 
SOLUTION:
 
In order for the TPC plugin to work, the following must be true: 
1. Logon Account of Reconcile Account must have sudoers access. 
 
The TPC process uses the logon account to issue the sudo command with -u <reconcileaccount> in order to elevate the privileges of the Reconcile account to use the passwd command. 
 
 
2. Reconcile Account needs root privileges (UID: 0)
 
The passwd command used by the reconcile account requires root privileges in order to specify an alternate user.
 
 
The plugin uses this design because of a design requirement to use the -u parameter with sudo, so that "root" is not defaulted. Defaulting to "root", in some environments, can be problematic if root was either renamed or the customer wanted to use a root alias. Giving the logon account sudo access, could be considered a security concern by the customer. Customers with this concern should use the UnixSSHv3 plugin for SUDO, until the issue is addressed in a future release.
 



Actions
  • Print
  • Copy Link

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