Syntax
string getshell ( string user )
Description
getshell returns the specified user’s login program from the policy server (or from the client host if getpasswordfromrun is set to yes in the policy server's pm.settings file).
Example
#check the user's shell on the policy server is in /opt/quest/bin shell=getshell(user); if (dirname(shell) != "/opt/quest/bin") { reject "You are only permitted to run a login shell from /opt/quest/bin"; }