While executing commands to use a pmshell the runusers .files in their home directory are not being executed and environment variables are missing.
The following policy code can go into the default policy file '/etc/opt/quest/qpm4u/pm.conf'. It can also be adapted with other pmshells (pmsh and pmcsh) to force the reading of the runuser's dotfiles when running the pmshell from the command, for example "pmrun pmksh" or "pmksh".
if (basename (command) == "pmksh") {
runcommand="/opt/quest/bin/pmksh";
runargv [0]=sprintf("-%s",runcommand);
}
© 2024 One Identity LLC. ALL RIGHTS RESERVED. Feedback Terms of Use Privacy Cookie Preference Center