Switch OV Process Ownerships
In my-client implementation there is standard owner for OV processes, that is opc_op
. We can check this on running agents/OV daemons via ps -ef | grep OV
.
A non-standard my-client will return e.g. (which are owned by root
):
root 2555 1 0 Mar10 ? 00:00:08 /opt/OV/bin/ovcd root 2569 2555 0 Mar10 ? 00:00:08 /opt/OV/bin/ovbbccb -nodaemon root 2597 2555 0 Mar10 ? 00:00:07 /opt/OV/lbin/perf/coda root 2660 2555 0 Mar10 ? 00:00:00 /opt/OV/lbin/conf/ovconfd root 2823 2555 0 Mar10 ? 00:00:16 /opt/OV/lbin/eaagt/opcmsga root 2826 2555 0 Mar10 ? 00:00:00 /opt/OV/lbin/eaagt/opcacta root 2840 2555 0 Mar10 ? 00:00:00 /opt/OV/lbin/eaagt/opcmsgi root 8083 2660 0 18:17 ? 00:00:00 /bin/sh -c ps -f | grep OV root 8085 8083 0 18:17 ? 00:00:00 grep OV
Hence, we’ll have to alter the processes ownership as follows:
[@node as root]
/opt/OV/bin/ovdeploy -inv && ps -ef | grep OV /opt/OV/bin/ovc -kill && ps -ef | grep OV umask 02 && /opt/OV/bin/ovswitchuser.sh -existinguser opc_op -existinggroup opcgrp \ && chmod 4550 /opt/OV/bin/ovbbccb && /opt/OV/bin/ovconfchg -ns bbc.cb -set CHROOT_PATH / && su - opc_op
The last line ($ su - opc_op
) switch user to opc_op
, so it’ll continue in this user:
[@node as opc_op]
/opt/OV/bin/ovc -start && /opt/OV/bin/ovc -status
About
+Arif Kusbandono
Recently
Et Cetera
© logIt. Powered by WordPress using the DePo Skinny Tweaked Theme.