<br><div class="gmail_quote">








<div lang="EN-US" link="blue" vlink="blue" style="word-wrap:break-word">

<div>

<p class="MsoNormal"><font size="3" color="maroon" face="Times New Roman"><span style="font-size:12.0pt;color:maroon">Hi,</span></font></p>

<p class="MsoNormal"><font size="3" color="maroon" face="Times New Roman"><span style="font-size:12.0pt;color:maroon"> </span></font></p>

<p class="MsoNormal"><font size="3" color="maroon" face="Times New Roman"><span style="font-size:12.0pt;color:maroon">To make the permissions, owner &amp;
group of all the installables same, I changed the permissions to 777 &amp;
owner &amp; group to root for all the installables. </span></font></p>

<p class="MsoNormal"><font size="3" color="maroon" face="Times New Roman"><span style="font-size:12.0pt;color:maroon"> </span></font></p>

<p class="MsoNormal"><font size="3" color="maroon" face="Times New Roman"><span style="font-size:12.0pt;color:maroon">Now I am able to get the output of the
following commands -</span></font></p>

<p class="MsoNormal"><font size="3" color="#333399" face="Times New Roman"><span style="font-size:12.0pt;color:#333399">[root@test bin]# ls -l
/home/postgres/7.4.13/lib/libpq.so.3</span></font></p>

<p class="MsoNormal"><font size="3" color="#333399" face="Times New Roman"><span style="font-size:12.0pt;color:#333399">lrwxrwxrwx. 1 root root 12 2010-11-09
23:59 /home/postgres/7.4.13/lib/libpq.so.3 -&gt; libpq.so.3.1</span></font></p>

<p class="MsoNormal"><font size="3" color="#333399" face="Times New Roman"><span style="font-size:12.0pt;color:#333399"> </span></font></p>

<p class="MsoNormal"><font size="3" color="#333399" face="Times New Roman"><span style="font-size:12.0pt;color:#333399">[root@test bin]# export
LD_LIBRARY_PATH=/home/postgres/7.4.13/lib</span></font></p>

<p class="MsoNormal"><font size="3" color="#333399" face="Times New Roman"><span style="font-size:12.0pt;color:#333399">[root@test bin]# echo $LD_LIBRARY_PATH</span></font></p>

<p class="MsoNormal"><font size="3" color="#333399" face="Times New Roman"><span style="font-size:12.0pt;color:#333399">/home/postgres/7.4.13/lib</span></font></p>

<p class="MsoNormal"><font size="3" color="#333399" face="Times New Roman"><span style="font-size:12.0pt;color:#333399"> </span></font></p>

<p class="MsoNormal"><font size="3" color="#333399" face="Times New Roman"><span style="font-size:12.0pt;color:#333399">[root@test bin]# ldd
/home/test/Python/2.4.4/lib/python2.4/site-packages/psycopgmodule.so | grep
libpq.so</span></font></p>

<p class="MsoNormal"><font size="3" color="#333399" face="Times New Roman"><span style="font-size:12.0pt;color:#333399">       
libpq.so.3 =&gt; /home/postgres/7.4.13/lib/libpq.so.3 (0x005b1000)</span></font></p>

<p class="MsoNormal"><font size="3" color="#333399" face="Times New Roman"><span style="font-size:12.0pt;color:#333399"> </span></font></p>

<p class="MsoNormal"><font size="3" color="maroon" face="Times New Roman"><span style="font-size:12.0pt;color:maroon">But when I start the zope as root user, I
face the following error -</span></font></p>

<p class="MsoNormal"><font size="3" color="maroon" face="Times New Roman"><span style="font-size:12.0pt;color:maroon"> </span></font></p>

<p class="MsoNormal"><font size="3" color="#333399" face="Times New Roman"><span lang="NL" style="font-size:12.0pt;color:#333399">[root@test bin]# ./zopectl fg</span></font></p>

<p class="MsoNormal"><font size="3" color="#333399" face="Times New Roman"><span lang="NL" style="font-size:12.0pt;color:#333399">/opt/zope/bin/runzope -X
debug-mode=on</span></font></p>

<p class="MsoNormal"><font size="3" color="#333399" face="Times New Roman"><span style="font-size:12.0pt;color:#333399">2010-11-19 21:10:21 INFO ZServer HTTP
server started at Fri Nov 19 21:10:21 2010</span></font></p>

<p class="MsoNormal"><font size="3" color="#333399" face="Times New Roman"><span style="font-size:12.0pt;color:#333399">       
Hostname: 0.0.0.0</span></font></p>

<p class="MsoNormal"><font size="3" color="#333399" face="Times New Roman"><span style="font-size:12.0pt;color:#333399">       
Port: 8080</span></font></p>

<p class="MsoNormal"><font size="3" color="#333399" face="Times New Roman"><span style="font-size:12.0pt;color:#333399">2010-11-19 21:10:21 CRITICAL Zope A user
was not specified to setuid to; fix this to start as root (change the
effective-user directive in zope.conf)</span></font></p>

<p class="MsoNormal"><font size="3" color="#333399" face="Times New Roman"><span style="font-size:12.0pt;color:#333399">Traceback (most recent call last):</span></font></p>

<p class="MsoNormal"><font size="3" color="#333399" face="Times New Roman"><span style="font-size:12.0pt;color:#333399">  File
&quot;/opt/zope/lib/python/Zope2/Startup/run.py&quot;, line 56, in ?</span></font></p>

<p class="MsoNormal"><font size="3" color="#333399" face="Times New Roman"><span style="font-size:12.0pt;color:#333399">    run()</span></font></p>

<p class="MsoNormal"><font size="3" color="#333399" face="Times New Roman"><span style="font-size:12.0pt;color:#333399">  File &quot;/opt/zope/lib/python/Zope2/Startup/run.py&quot;,
line 21, in run</span></font></p>

<p class="MsoNormal"><font size="3" color="#333399" face="Times New Roman"><span style="font-size:12.0pt;color:#333399">    starter.prepare()</span></font></p>

<p class="MsoNormal"><font size="3" color="#333399" face="Times New Roman"><span style="font-size:12.0pt;color:#333399">  File
&quot;/opt/zope/lib/python/Zope2/Startup/__init__.py&quot;, line 105, in
prepare</span></font></p>

<p class="MsoNormal"><font size="3" color="#333399" face="Times New Roman"><span style="font-size:12.0pt;color:#333399">    self.dropPrivileges()</span></font></p>

<p class="MsoNormal"><font size="3" color="#333399" face="Times New Roman"><span style="font-size:12.0pt;color:#333399">  File
&quot;/opt/zope/lib/python/Zope2/Startup/__init__.py&quot;, line 256, in
dropPrivileges</span></font></p>

<p class="MsoNormal"><font size="3" color="#333399" face="Times New Roman"><span style="font-size:12.0pt;color:#333399">    return
dropPrivileges(self.cfg)</span></font></p>

<p class="MsoNormal"><font size="3" color="#333399" face="Times New Roman"><span style="font-size:12.0pt;color:#333399">  File
&quot;/opt/zope/lib/python/Zope2/Startup/__init__.py&quot;, line 425, in
dropPrivileges</span></font></p>

<p class="MsoNormal"><font size="3" color="#333399" face="Times New Roman"><span style="font-size:12.0pt;color:#333399">    raise
ZConfig.ConfigurationError(msg)</span></font></p>

<p class="MsoNormal"><font size="3" color="#333399" face="Times New Roman"><span style="font-size:12.0pt;color:#333399">ZConfig.ConfigurationError: A user was
not specified to setuid to; fix this to start as root (change the
effective-user directive in zope.conf)</span></font></p>

<p class="MsoNormal"><font size="3" color="#333399" face="Times New Roman"><span style="font-size:12.0pt;color:#333399"> </span></font></p>

<p class="MsoNormal"><font size="3" color="maroon" face="Times New Roman"><span style="font-size:12.0pt;color:maroon"> </span></font></p>

<p class="MsoNormal"><font size="3" color="maroon" face="Times New Roman"><span style="font-size:12.0pt;color:maroon">The effective user part in /etc/zope.conf
file looks as shown below -  </span></font></p>

<p class="MsoNormal"><font size="3" color="#333399" face="Times New Roman"><span style="font-size:12.0pt;color:#333399">-------------------------------------------------------------------------------------------------------------------------------------------------------------------</span></font></p>


<p class="MsoNormal"><font size="3" color="#333399" face="Times New Roman"><span style="font-size:12.0pt;color:#333399"># Directive: effective-user</span></font></p>

<p class="MsoNormal"><font size="3" color="#333399" face="Times New Roman"><span style="font-size:12.0pt;color:#333399">#</span></font></p>

<p class="MsoNormal"><font size="3" color="#333399" face="Times New Roman"><span style="font-size:12.0pt;color:#333399"># Description:</span></font></p>

<p class="MsoNormal"><font size="3" color="#333399" face="Times New Roman"><span style="font-size:12.0pt;color:#333399">#     If you intend
to run Zope as the &quot;root&quot; user, you must supply this</span></font></p>

<p class="MsoNormal"><font size="3" color="#333399" face="Times New Roman"><span style="font-size:12.0pt;color:#333399">#     directive with
an effective username or userid number to which Zope</span></font></p>

<p class="MsoNormal"><font size="3" color="#333399" face="Times New Roman"><span style="font-size:12.0pt;color:#333399">#     will &#39;suid&#39;
after the server ports are bound. This directive only</span></font></p>

<p class="MsoNormal"><font size="3" color="#333399" face="Times New Roman"><span style="font-size:12.0pt;color:#333399">#     has effect
under UNIX and if Zope is started as the root user.</span></font></p>

<p class="MsoNormal"><font size="3" color="#333399" face="Times New Roman"><span style="font-size:12.0pt;color:#333399">#</span></font></p>

<p class="MsoNormal"><font size="3" color="#333399" face="Times New Roman"><span style="font-size:12.0pt;color:#333399"># Default: unset</span></font></p>

<p class="MsoNormal"><font size="3" color="#333399" face="Times New Roman"><span style="font-size:12.0pt;color:#333399">#</span></font></p>

<p class="MsoNormal"><font size="3" color="#333399" face="Times New Roman"><span style="font-size:12.0pt;color:#333399"># Example:</span></font></p>

<p class="MsoNormal"><font size="3" color="#333399" face="Times New Roman"><span style="font-size:12.0pt;color:#333399">#</span></font></p>

<p class="MsoNormal"><font size="3" color="#333399" face="Times New Roman"><span style="font-size:12.0pt;color:#333399"># effective-user chrism</span></font></p>

<p class="MsoNormal"><font size="3" color="#333399" face="Times New Roman"><span style="font-size:12.0pt;color:#333399">-----------------------------------------------------------------------------------------------------------------------------------------------------------------</span></font></p>


<p class="MsoNormal"><font size="3" color="maroon" face="Times New Roman"><span style="font-size:12.0pt;color:maroon"> </span></font></p>

<p class="MsoNormal"><font size="3" color="maroon" face="Times New Roman"><span style="font-size:12.0pt;color:maroon">As, they have said to change the
effective-user directive in zope.conf, I changed the effective user part in the
file as shown below – </span></font></p>

<p class="MsoNormal"><font size="3" color="maroon" face="Times New Roman"><span style="font-size:12.0pt;color:maroon"> </span></font></p>

<p class="MsoNormal"><font size="3" color="maroon" face="Times New Roman"><span style="font-size:12.0pt;color:maroon">-------------------------------------------------------------------------------------------------------------------------------------------------------------------</span></font></p>


<p class="MsoNormal"><font size="3" color="maroon" face="Times New Roman"><span style="font-size:12.0pt;color:maroon"> </span></font></p>

<p class="MsoNormal"><font size="3" color="#333399" face="Times New Roman"><span style="font-size:12.0pt;color:#333399"># Directive: effective-user</span></font></p>

<p class="MsoNormal"><font size="3" color="#333399" face="Times New Roman"><span style="font-size:12.0pt;color:#333399">#</span></font></p>

<p class="MsoNormal"><font size="3" color="#333399" face="Times New Roman"><span style="font-size:12.0pt;color:#333399"># Description:</span></font></p>

<p class="MsoNormal"><font size="3" color="#333399" face="Times New Roman"><span style="font-size:12.0pt;color:#333399">#     If you intend
to run Zope as the &quot;root&quot; user, you must supply this</span></font></p>

<p class="MsoNormal"><font size="3" color="#333399" face="Times New Roman"><span style="font-size:12.0pt;color:#333399">#     directive with
an effective username or userid number to which Zope</span></font></p>

<p class="MsoNormal"><font size="3" color="#333399" face="Times New Roman"><span style="font-size:12.0pt;color:#333399">#     will &#39;suid&#39;
after the server ports are bound. This directive only</span></font></p>

<p class="MsoNormal"><font size="3" color="#333399" face="Times New Roman"><span style="font-size:12.0pt;color:#333399">#     has effect
under UNIX and if Zope is started as the root user.</span></font></p>

<p class="MsoNormal"><font size="3" color="#333399" face="Times New Roman"><span style="font-size:12.0pt;color:#333399">#</span></font></p>

<p class="MsoNormal"><font size="3" color="#333399" face="Times New Roman"><span style="font-size:12.0pt;color:#333399"># Default: unset</span></font></p>

<p class="MsoNormal"><font size="3" color="#333399" face="Times New Roman"><span style="font-size:12.0pt;color:#333399">#</span></font></p>

<p class="MsoNormal"><font size="3" color="#333399" face="Times New Roman"><span style="font-size:12.0pt;color:#333399"># Example:</span></font></p>

<p class="MsoNormal"><font size="3" color="#333399" face="Times New Roman"><span style="font-size:12.0pt;color:#333399">#</span></font></p>

<p class="MsoNormal"><font size="3" color="#333399" face="Times New Roman"><span style="font-size:12.0pt;color:#333399">    effective-user root</span></font></p>

<div style="border:none;border-bottom:solid windowtext 1.0pt;padding:0in 0in 1.0pt 0in">

<p class="MsoNormal"><font size="3" color="maroon" face="Times New Roman"><span style="font-size:12.0pt;color:maroon"> </span></font></p>

</div>

<p class="MsoNormal"><font size="3" color="maroon" face="Times New Roman"><span style="font-size:12.0pt;color:maroon"> </span></font></p>

<p class="MsoNormal"><font size="3" color="maroon" face="Times New Roman"><span style="font-size:12.0pt;color:maroon">After changing the above file, When I
started zope as root, it is showing the below error – </span></font></p>

<p class="MsoNormal"><font size="3" color="maroon" face="Times New Roman"><span style="font-size:12.0pt;color:maroon"> </span></font></p>

<p class="MsoNormal"><font size="3" color="#333399" face="Times New Roman"><span lang="NL" style="font-size:12.0pt;color:#333399">[root@test bin]# ./zopectl fg</span></font></p>

<p class="MsoNormal"><font size="3" color="#333399" face="Times New Roman"><span lang="NL" style="font-size:12.0pt;color:#333399">/opt/zope/bin/runzope -X
debug-mode=on</span></font></p>

<p class="MsoNormal"><font size="3" color="#333399" face="Times New Roman"><span style="font-size:12.0pt;color:#333399">2010-11-19 21:19:47 INFO ZServer HTTP
server started at Fri Nov 19 21:19:47 2010</span></font></p>

<p class="MsoNormal"><font size="3" color="#333399" face="Times New Roman"><span style="font-size:12.0pt;color:#333399">       
Hostname: 0.0.0.0</span></font></p>

<p class="MsoNormal"><font size="3" color="#333399" face="Times New Roman"><span style="font-size:12.0pt;color:#333399">       
Port: 8080</span></font></p>

<p class="MsoNormal"><font size="3" color="#333399" face="Times New Roman"><span style="font-size:12.0pt;color:#333399">2010-11-19 21:19:47 ERROR Zope Cannot
start Zope with the effective user as the root user</span></font></p>

<p class="MsoNormal"><font size="3" color="#333399" face="Times New Roman"><span style="font-size:12.0pt;color:#333399">Traceback (most recent call last):</span></font></p>

<p class="MsoNormal"><font size="3" color="#333399" face="Times New Roman"><span style="font-size:12.0pt;color:#333399">  File
&quot;/opt/zope/lib/python/Zope2/Startup/run.py&quot;, line 56, in?</span></font></p>

<p class="MsoNormal"><font size="3" color="#333399" face="Times New Roman"><span style="font-size:12.0pt;color:#333399">    run()</span></font></p>

<p class="MsoNormal"><font size="3" color="#333399" face="Times New Roman"><span style="font-size:12.0pt;color:#333399">  File &quot;/opt/zope/lib/python/Zope2/Startup/run.py&quot;,
line 21, in run</span></font></p>

<p class="MsoNormal"><font size="3" color="#333399" face="Times New Roman"><span style="font-size:12.0pt;color:#333399">    starter.prepare()</span></font></p>

<p class="MsoNormal"><font size="3" color="#333399" face="Times New Roman"><span style="font-size:12.0pt;color:#333399">  File
&quot;/opt/zope/lib/python/Zope2/Startup/__init__.py&quot;, line 105, in
prepare</span></font></p>

<p class="MsoNormal"><font size="3" color="#333399" face="Times New Roman"><span style="font-size:12.0pt;color:#333399">    self.dropPrivileges()</span></font></p>

<p class="MsoNormal"><font size="3" color="#333399" face="Times New Roman"><span style="font-size:12.0pt;color:#333399">  File
&quot;/opt/zope/lib/python/Zope2/Startup/__init__.py&quot;, line 256, in
dropPrivileges</span></font></p>

<p class="MsoNormal"><font size="3" color="#333399" face="Times New Roman"><span style="font-size:12.0pt;color:#333399">    return
dropPrivileges(self.cfg)</span></font></p>

<p class="MsoNormal"><font size="3" color="#333399" face="Times New Roman"><span style="font-size:12.0pt;color:#333399">  File
&quot;/opt/zope/lib/python/Zope2/Startup/__init__.py&quot;, line 449, in
dropPrivileges</span></font></p>

<p class="MsoNormal"><font size="3" color="#333399" face="Times New Roman"><span style="font-size:12.0pt;color:#333399">    raise
ZConfig.ConfigurationError(msg)</span></font></p>

<p class="MsoNormal"><font size="3" color="#333399" face="Times New Roman"><span style="font-size:12.0pt;color:#333399">ZConfig.ConfigurationError: Cannot start
Zope with the effective user as the root user</span></font></p>

<p class="MsoNormal"><font size="3" color="#333399" face="Times New Roman"><span style="font-size:12.0pt;color:#333399"> </span></font></p>

<p class="MsoNormal"><font size="3" color="maroon" face="Times New Roman"><span style="font-size:12.0pt;color:maroon"> </span></font></p>

<p class="MsoNormal"><font size="3" color="maroon" face="Times New Roman"><span style="font-size:12.0pt;color:maroon">Have I made any mistake in changing the
effective user part in zope.conf ?</span></font></p>

<p class="MsoNormal"><font size="3" color="maroon" face="Times New Roman"><span style="font-size:12.0pt;color:maroon"> </span></font></p>

<p class="MsoNormal"><font size="3" color="maroon" face="Times New Roman"><span style="font-size:12.0pt;color:maroon">Do you think I have done right? Or is
this some other error?</span></font></p>

<p class="MsoNormal"><font size="3" color="maroon" face="Times New Roman"><span style="font-size:12.0pt;color:maroon"> </span></font></p>

<p class="MsoNormal"><font size="3" color="maroon" face="Times New Roman"><span style="font-size:12.0pt;color:maroon">Also find attached the two files in which
it is showing errors.  </span></font></p>

<p class="MsoNormal"><font size="3" color="maroon" face="Times New Roman"><span style="font-size:12.0pt;color:maroon"> </span></font></p>

</div>

</div>


</div>