OPM - OPMSU509E You are not authorized to execute script [Script dir] on behalf of user root (Vault user: <UserName>)

OPM - OPMSU509E You are not authorized to execute script [Script dir] on behalf of user root (Vault user: <UserName>)

123
Created On 11/10/26 11:02 AM - Last Modified 11/10/26 16:06 PM


Symptom


User is not unable to execute the allowed command.
The error message from OPM reads:
[user ~]$ pimsu -vu <UserName> <ScriptName> -a
Vault password is required in order to continue.
Vault password: OPMSU509E You are not authorized to execute script [Script dir] on behalf of user root (Vault user: <UserName>)


Environment


12.0;12.1;12.2 OPM - Linux

Cause


The interpreter being used is not in the allowed interpreters list.
The interpreter being used is [/bin/env sh].

Relevant messages from the log:
[TimeStamp] | {pid=17718} | {tid=140537996} | P20CPIMSuExecuteCommand | OPM/Commands/PIMSuExecuteCommand.cpp(555) | :: | OPMSU501I [d3c4d614-ce8b-410d-9ca4-0bb0a2520257] Interpreter directive has found [/bin/env sh].
[TimeStamp] | {pid=17718} | {tid=140537996} | P16CPIMSuACLManager | OPM/Handle/PIMSuACLManager.cpp(328) | :: | OPMSU093I [d3c4d614-ce8b-410d-9ca4-0bb0a2520257] Checking match for command [/bin/env sh] with command pattern [^((/usr)?/bin/(bash|sh|ksh|ksh93|csh|tcsh)|/opt/freeware/bin/(bash|bash_32|bash_64|tcsh))$] (Original command pattern: [(/usr)?/bin/(bash|sh|ksh|ksh93|csh|tcsh)|/opt/freeware/bin/(bash|bash_32|bash_64|tcsh)], Matching algorithm type: [RegexpEX])
[TimeStamp] | {pid=17718} | {tid=140537996} | P16CPIMSuACLManager | OPM/Handle/PIMSuACLManager.cpp(301) | :: | OPMSU281I [d3c4d614-ce8b-410d-9ca4-0bb0a2520257] A match for command [/bin/env sh] with command pattern [(/usr)?/bin/(bash|sh|ksh|ksh93|csh|tcsh)|/opt/freeware/bin/(bash|bash_32|bash_64|tcsh)] was not found
[TimeStamp] | {pid=17718} | {tid=140537996} | P19CPIMSuSessionGlobal | OPM/Services/PIMSuSessionGlobal.cpp(174) | :: | OPMSU458I [d3c4d614-ce8b-410d-9ca4-0bb0a2520257] Global session object: Getting parameter vaultusername
[TimeStamp] | {pid=17718} | {tid=140537996} | P19CPIMSuSessionGlobal | OPM/Services/PIMSuSessionGlobal.cpp(60) | :: | OPMSU454I [d3c4d614-ce8b-410d-9ca4-0bb0a2520257] Global session object: Getting session data object


Resolution


Documentation regarding allowedInterpreters:
https://docs.cyberark.com/Product-Doc/OnlineHelp/PAS/Latest/en/Content/PASIMP/Privileged-Commands-Restrictions.htm#:~:text=account%20level%3A%20empty-,AllowedInterpreters,-Description

The interpreter should be added to this list in order for this command to work.


 


Actions
  • Print
  • Copy Link

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