<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>logIt &#187; process owner</title>
	<atom:link href="https://lakm.us/logit/tag/process-owner/feed/" rel="self" type="application/rss+xml" />
	<link>https://lakm.us/logit</link>
	<description>Log Around The Clock</description>
	<lastBuildDate>Sat, 06 Jun 2015 14:17:37 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.5.1</generator>
		<item>
		<title>Switch OV Process Ownerships</title>
		<link>https://lakm.us/logit/2009/03/switch-ov-process-ownerships/</link>
		<comments>https://lakm.us/logit/2009/03/switch-ov-process-ownerships/#comments</comments>
		<pubDate>Wed, 11 Mar 2009 06:38:26 +0000</pubDate>
		<dc:creator>Arif</dc:creator>
				<category><![CDATA[OpenView]]></category>
		<category><![CDATA[install-deinstall]]></category>
		<category><![CDATA[managed node]]></category>
		<category><![CDATA[process owner]]></category>

		<guid isPermaLink="false">http://localhost/it/?p=40</guid>
		<description><![CDATA[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 &#124; 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 [...]]]></description>
				<content:encoded><![CDATA[<p>In my-client implementation there is standard owner for OV processes, that is <code>opc_op</code>. We can check this on running agents/OV daemons via <code>ps -ef | grep OV</code>.</p>
<p>A <strong>non-standard</strong> my-client will return e.g. (which are owned by <strong><code>root</code></strong>):</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">root      <span style="color: #000000;">2555</span>     <span style="color: #000000;">1</span>  <span style="color: #000000;">0</span> Mar10 ?        00:00:08 <span style="color: #000000; font-weight: bold;">/</span>opt<span style="color: #000000; font-weight: bold;">/</span>OV<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>ovcd
root      <span style="color: #000000;">2569</span>  <span style="color: #000000;">2555</span>  <span style="color: #000000;">0</span> Mar10 ?        00:00:08 <span style="color: #000000; font-weight: bold;">/</span>opt<span style="color: #000000; font-weight: bold;">/</span>OV<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>ovbbccb <span style="color: #660033;">-nodaemon</span>
root      <span style="color: #000000;">2597</span>  <span style="color: #000000;">2555</span>  <span style="color: #000000;">0</span> Mar10 ?        00:00:07 <span style="color: #000000; font-weight: bold;">/</span>opt<span style="color: #000000; font-weight: bold;">/</span>OV<span style="color: #000000; font-weight: bold;">/</span>lbin<span style="color: #000000; font-weight: bold;">/</span>perf<span style="color: #000000; font-weight: bold;">/</span>coda
root      <span style="color: #000000;">2660</span>  <span style="color: #000000;">2555</span>  <span style="color: #000000;">0</span> Mar10 ?        00:00:00 <span style="color: #000000; font-weight: bold;">/</span>opt<span style="color: #000000; font-weight: bold;">/</span>OV<span style="color: #000000; font-weight: bold;">/</span>lbin<span style="color: #000000; font-weight: bold;">/</span>conf<span style="color: #000000; font-weight: bold;">/</span>ovconfd
root      <span style="color: #000000;">2823</span>  <span style="color: #000000;">2555</span>  <span style="color: #000000;">0</span> Mar10 ?        00:00:<span style="color: #000000;">16</span> <span style="color: #000000; font-weight: bold;">/</span>opt<span style="color: #000000; font-weight: bold;">/</span>OV<span style="color: #000000; font-weight: bold;">/</span>lbin<span style="color: #000000; font-weight: bold;">/</span>eaagt<span style="color: #000000; font-weight: bold;">/</span>opcmsga
root      <span style="color: #000000;">2826</span>  <span style="color: #000000;">2555</span>  <span style="color: #000000;">0</span> Mar10 ?        00:00:00 <span style="color: #000000; font-weight: bold;">/</span>opt<span style="color: #000000; font-weight: bold;">/</span>OV<span style="color: #000000; font-weight: bold;">/</span>lbin<span style="color: #000000; font-weight: bold;">/</span>eaagt<span style="color: #000000; font-weight: bold;">/</span>opcacta
root      <span style="color: #000000;">2840</span>  <span style="color: #000000;">2555</span>  <span style="color: #000000;">0</span> Mar10 ?        00:00:00 <span style="color: #000000; font-weight: bold;">/</span>opt<span style="color: #000000; font-weight: bold;">/</span>OV<span style="color: #000000; font-weight: bold;">/</span>lbin<span style="color: #000000; font-weight: bold;">/</span>eaagt<span style="color: #000000; font-weight: bold;">/</span>opcmsgi
root      <span style="color: #000000;">8083</span>  <span style="color: #000000;">2660</span>  <span style="color: #000000;">0</span> <span style="color: #000000;">18</span>:<span style="color: #000000;">17</span> ?        00:00:00 <span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span><span style="color: #c20cb9; font-weight: bold;">sh</span> <span style="color: #660033;">-c</span> <span style="color: #c20cb9; font-weight: bold;">ps</span> <span style="color: #660033;">-f</span> <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">grep</span> OV
root      <span style="color: #000000;">8085</span>  <span style="color: #000000;">8083</span>  <span style="color: #000000;">0</span> <span style="color: #000000;">18</span>:<span style="color: #000000;">17</span> ?        00:00:00 <span style="color: #c20cb9; font-weight: bold;">grep</span> OV</pre></div></div>

<p>Hence, we&#8217;ll have to alter the processes ownership as follows:</p>
<blockquote><p>[@node as <strong>root</strong>]</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">/</span>opt<span style="color: #000000; font-weight: bold;">/</span>OV<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>ovdeploy <span style="color: #660033;">-inv</span>  <span style="color: #000000; font-weight: bold;">&amp;&amp;</span> <span style="color: #c20cb9; font-weight: bold;">ps</span> <span style="color: #660033;">-ef</span> <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">grep</span> OV  <span style="color: #000000; font-weight: bold;">/</span>opt<span style="color: #000000; font-weight: bold;">/</span>OV<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>ovc <span style="color: #660033;">-kill</span> <span style="color: #000000; font-weight: bold;">&amp;&amp;</span> <span style="color: #c20cb9; font-weight: bold;">ps</span> <span style="color: #660033;">-ef</span> <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">grep</span> OV <span style="color: #7a0874; font-weight: bold;">umask</span> 02 <span style="color: #000000; font-weight: bold;">&amp;&amp;</span> <span style="color: #000000; font-weight: bold;">/</span>opt<span style="color: #000000; font-weight: bold;">/</span>OV<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>ovswitchuser.sh <span style="color: #660033;">-existinguser</span> opc_op <span style="color: #660033;">-existinggroup</span> opcgrp \ <span style="color: #000000; font-weight: bold;">&amp;&amp;</span> <span style="color: #c20cb9; font-weight: bold;">chmod</span> <span style="color: #000000;">4550</span> <span style="color: #000000; font-weight: bold;">/</span>opt<span style="color: #000000; font-weight: bold;">/</span>OV<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>ovbbccb <span style="color: #000000; font-weight: bold;">&amp;&amp;</span> <span style="color: #000000; font-weight: bold;">/</span>opt<span style="color: #000000; font-weight: bold;">/</span>OV<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>ovconfchg <span style="color: #660033;">-ns</span> bbc.cb <span style="color: #660033;">-set</span> CHROOT_PATH <span style="color: #000000; font-weight: bold;">/</span> <span style="color: #000000; font-weight: bold;">&amp;&amp;</span> <span style="color: #c20cb9; font-weight: bold;">su</span> - opc_op</pre></div></div>

</blockquote>
<p>The last line (<code>$ su - opc_op</code>) switch user to <code>opc_op</code>, so it&#8217;ll continue in this user:</p>
<blockquote><p>[@node as <strong>opc_op</strong>]</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"> <span style="color: #000000; font-weight: bold;">/</span>opt<span style="color: #000000; font-weight: bold;">/</span>OV<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>ovc <span style="color: #660033;">-start</span> <span style="color: #000000; font-weight: bold;">&amp;&amp;</span> <span style="color: #000000; font-weight: bold;">/</span>opt<span style="color: #000000; font-weight: bold;">/</span>OV<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>ovc <span style="color: #660033;">-status</span></pre></div></div>

</blockquote>
]]></content:encoded>
			<wfw:commentRss>https://lakm.us/logit/2009/03/switch-ov-process-ownerships/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
