Hello,
We have just migrated from AIX4.3 server to a new AIX5.1 server. A Normal user use to run some scripts as exec.root and exe some root commands. When I copied the scripts across and tried to run them I get no responce. Can some please help me here.
-rwxr-xr-- 1 root staff 3535 Dec 18 19:41 lock.ksh
extract from script
move_userexit ()
{
for INSTANCE_OWNER in db2inst1 db2inst2 db2inst3 db2inst4
do
if [[ -e ~$INSTANCE_OWNER/$USER_EXIT ]]
# If the user exit program exists move it to a temporary name
then
$SCRIPTS_BIN/exec.root mv ~$INSTANCE_OWNER/$USER_EXIT ~$INSTANCE_
OWNER/$USER_EXIT_TMP
fi
if [[ ! -e ~$INSTANCE_OWNER/$USER_EXIT_TMP ]]
then
print "Could not move DB2 user exit programme for $INSTANCE_OWNER"
fi
done
}
We have just migrated from AIX4.3 server to a new AIX5.1 server. A Normal user use to run some scripts as exec.root and exe some root commands. When I copied the scripts across and tried to run them I get no responce. Can some please help me here.
-rwxr-xr-- 1 root staff 3535 Dec 18 19:41 lock.ksh
extract from script
move_userexit ()
{
for INSTANCE_OWNER in db2inst1 db2inst2 db2inst3 db2inst4
do
if [[ -e ~$INSTANCE_OWNER/$USER_EXIT ]]
# If the user exit program exists move it to a temporary name
then
$SCRIPTS_BIN/exec.root mv ~$INSTANCE_OWNER/$USER_EXIT ~$INSTANCE_
OWNER/$USER_EXIT_TMP
fi
if [[ ! -e ~$INSTANCE_OWNER/$USER_EXIT_TMP ]]
then
print "Could not move DB2 user exit programme for $INSTANCE_OWNER"
fi
done
}