When accessing a target via PSMP and launching a tool such as nmtui the text is illegible
Symptom
When accessing a target via PSMP and launching a tool such as nmtui the text is illegible.
The issue can be caused by combination of nmtui's usage of ">" sign in its text-based interface for buttons and command prompt detection's default configuration.
In some situations, nmtui draws the ">" sign as the last character visible to PSMP, then, by pressing Enter key for confirmation/button press, PSMP treats the drawn interface as a disallowed or malformed multiline command - communicating a warning in the process.
Environment
12.6;13.2;14.0;14.4 Privileged Access Manager (PAM, self-hosted) PSMP
Resolution
To prevent such behavior from occurring, you should (in global or at platform/policy level) adapt the regular expression contained in "ShellPromptForAudit" parameter to either completely ignore prompts ending in ">" sign, or to restricts context in which it is matched.
For example:
Default ShellPromptForAudit is as follows: (.*)[>#\\$]$
Example ShellPromptForAudit not triggering the issue with nmtui: (.*)[#\\$]$
You either need to restart the PSMP service or wait ten minutes for the configuration changes to take effect.