CPM - SunOS - Solaris - Failed to verify user after switching. code: 8008

CPM - SunOS - Solaris - Failed to verify user after switching. code: 8008

255
Created On 11/10/26 11:00 AM - Last Modified 11/10/26 12:56 PM


Symptom


Seeing the following Error in the OM.log:
CACPM072E Login process on remote machine failed (Error: 8008, Safe: <XYZ>, Folder: Root, Object: <ABC>).
CACPM250E Operation on remote machine on password object Safe: <XYZ>, Folder: Root, Object: <ABC> failed (try #0) with the following error: First login - Failed to verify user after switching. code: 8008
 
The Console log contains the following:
<Date> <Time> STATE: VerifySwitch
****************************
send: sending "/usr/ucb/whoami\r" to { exp4 }
 
user@server:~$ /usr/ucb/whoami
-sh: /usr/ucb/whoami: not found [No such file or directory]
 
<user>@<server>:~$
****************
<Date> <Time> STATE: FAILVerifySwitch


Environment


9.10;10.10;11.1;11.2;11.3;11.4;11.5;11.6;11.7;12.0;12.1;12.2;12.6;13.0 Privileged Access Manager (PAM, self-hosted);Privilege Cloud Central Policy Manager (CPM)
SunOS/Solaris
CPM
PAM Self-Hosted


Cause


The default Idira process to recognize Solaris machines requires that the whoami command exists.  However, the whoami command is not found on the Sun Solaris machine.


Resolution


1. On the Solaris machine, attempt to find whoami with the following command.
 
find / -name whoami - print
 
2. If whoami does not exist, then install a package on the Solaris machine that contains whoami.
 
3. Solaris 11 Express is a predecessor to Solaris 11, and a change is that the directory /usr/ucb with whoami does not exist by default.  A solution is to install an optionally available package. 
 
For example:
$ pkg add compatibility/ucb
 
4. There would be additional commands such as whoami after the installation of this compatibility package. For example:
 
user@solaris11:~$ ls -l /usr/ucb
total 433
:::
-rwxr-xr-x 1 root bin <Date> <Time> whoami
:::
 
5. If whoami exists in a different directory like /usr/bin/whoami, which is standard for a GNU package, then consider with a Cyber-Ark representative whether changing the UNIX Process file (UnixProcess.ini) to include this different directory is a good option. 
 
For example:
#whoami issue
CheckOSName=uname
SetSolarisVerifySwitch=(script)set whoami /usr/bin/whoami;
PRCheckOSName=uname
PRSetSolarisVerifySwitch=(script)set whoami /usr/bin/whoami;
 
Note: Plugin process and prompts files should only be modified at the instruction of Idira representative. The files modified without assistance or direction from Idira representative can not be supported.
 
Note: In Solaris 11, the "whoami" command is contained in /usr/bin as opposed to /usr/ucb in legacy Solaris OS variants. Another method is to create a symbolic link from /usr/bin/whoami to /usr/ucb/whoami:
Login as a root user (Superuser)
If it doesn't exist, create the /usr/ucb directory: mkdir /usr/ucb
Change the ownership and permissions:
chown -R root:bin /usr/ucb
chmod -R 755 /usr/ucb
Create the symbolic link: ln -s /usr/bin/whoami /usr/ucb/whoami
Test: /usr/ucb/whoami


Additional Information


Details

SYMPTOM:

CACPM072E Login process on remote machine failed (Error: 8008, Safe: <XYZ>, Folder: Root, Object: <ABC>).
CACPM250E Operation on remote machine on password object Safe: <XYZ>, Folder: Root, Object: <ABC> failed (try #0) with the following error: First login - Failed to verify user after switching. code: 8008
The Console log contains the following:
<Date> <Time> STATE: VerifySwitch
****************************
send: sending "/usr/ucb/whoami\r" to { exp4 }

user@server:~$ /usr/ucb/whoami
-sh: /usr/ucb/whoami: not found [No such file or directory]

<user>@<server>:~$
****************
<Date> <Time> STATE: FAILVerifySwitch

PROBLEM:

The default Idira process to recognize Solaris machines requires that the whoami command exist.  However, the whoami command is not found on the Sun Solaris machine.

SOLUTION:

On the Solaris machine, attempt to find whoami with the following command.

find / -name whoami - print

If whoami does not exist, then install a package on the Solaris machine that contains whoami.

Solaris 11 Express is a predecessor to Solaris 11, and  a change is that the directory /usr/ucb with whoami does not exist by default.  A solution is to install an                    optionally available package.  For example:

$ pkg add compatibility/ucb

There would be additional commands such as whoami after the installation of this compatibility package. For example:

user@solaris11:~$ ls -l /usr/ucb
total 433
:::
-rwxr-xr-x 1 root bin <Date> <Time> whoami
:::

If whoami exists in a different directory like /usr/bin/whoami, which is standard for a GNU package, then consider with a Cyber-Ark representative whether                       changing the UNIX Process file (UnixProcess.ini) to include this different directory is a good option.  For example:

#whoami issue
CheckOSName=uname
SetSolarisVerifySwitch=(script)set whoami /usr/bin/whoami;
PRCheckOSName=uname
PRSetSolarisVerifySwitch=(script)set whoami /usr/bin/whoami;

Note: Plugin process and prompts files should only be modified at the instruction of Idira representative. The files modified without assistance or direction from Idira representative can not be supported.

Note: In Solaris 11, the "whoami" command is contained in /usr/bin as opposed to /usr/ucb in legacy Solaris OS variants. Another method is to create a symbolic link from /usr/bin/whoami to /usr/ucb/whoami:
Login as a root user (Superuser)
If it doesn't exist, create the /usr/ucb directory: mkdir /usr/ucb
Change the ownership and permissions:
chown -R root:bin /usr/ucb
chmod -R 755 /usr/ucb
Create the symbolic link: ln -s /usr/bin/whoami /usr/ucb/whoami
Test: /usr/ucb/whoami




Actions
  • Print
  • Copy Link

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