Hi
I am writing a shell scrpt to call pbrun to change user like below
pbrun su-otheruser
but in solaris by default there ia autoprompt after using pbrun su which asks the following which is mandatory to enter the reason,
Reason for ID change:
Is there a way to send the value form the script for the auto prompt ?
Please advice.
RudiC
April 7, 2013, 2:40am
2
Not sure if you could use redirection here - either to a file, or a here document...
Usually the prompt is to make sure the reason is logged in as the pbrun su is for a super user...so can the reason be sent from the shell script or any way to automate this'?
RudiC
April 7, 2013, 3:04am
4
Give it a try. As I don't have pbrun
nor know anything about it, I can't help further.