In the Sun 6.2.1 receiver install script, startinstall_od, the command executed to find if the user running the script is 'root' is /usr/ucb/whoami. On solaris 10 servers, this script is no longer available. Does anyone know what to replace in the script to get this to work for solaris 10? *) IW_USER="`/usr/ucb/whoami`" IW_ODSYSDIR="/etc"
IW_USER="`who am i|awk '{print $1}'`"
Thanks ghoti. I forgot to mention that this is a remote upgrade. So OD is running the install as root. When I run a test script which includes your command on the remote server as my userid, it comes back with my id. If I run a OD deployment from the OD base server with the test script as a deployNRun step running as root on the remote server, a space is returned for the userid.
IW_USER="`id -P|sed -e 's/:.*//'`"
IW_USER="`id|awk -F\( '{print $2}'|sed -e 's/).*//'
A Unix Admin said that the command 'who am i' traces back to the terminal connection to the server. Since OD does not connect via terminal connection, the command is not getting the valid userid. He suggested using /usr/xpg4/bin/id -un and that appears to work. I have opened a ticket with IW...since they should fix the OD 6.2.1 Sun Receiver package. Do you know of any reason why the above command may cause problems later in the install process?