Is there fix for false positive about root.sh in EM Agent home on Solaris?
I'm running orachk 18.3.0_20180808 as Oracle Enterprise Manager agent owner in Solaris 10 u11wos environment.
It reports "The root.sh script has not been executed in the Agent home. This is a mandatory step after the agent has been installed.", but root.sh was run there. In orachk.log I see that test runs commands that valid for Linux, but do not work or not exist in Solaris (there is no native command only gstat, and grep does not understand alternatives egrep must be used instead).
2018-08-14 10:10:21,444 - INFO - __main__[(execute_checks)(get_log_result)(15862)] - ROW=34.0.0.0.0.0.0.0.0.0
COMMAND =
sbindir=$(grep sbin $EMAGENT_HOME/bin/emctl | cut -d\'=\' -f2);root_owned=$(ls -l $sbindir |awk \'{print $3}\'|grep -c root);setuid_perm=$(stat --format %a $sbindir/nm* | grep -c \'4710\|4750\');if [ $root_owned -lt \'5\' -o $setuid_perm -lt 3 ];then echo "1";else echo "0";fi