<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hi Smita<div><br></div><div>running Zope (or a generally a server) as "<font class="Apple-style-span" face="Courier">root</font>" is newer a good idea (for several reasons; one of them: security). Zope probably avoid &nbsp;this problem by producing the error message that you posted (I just tested it, and I also got the same message).</div><div><br></div><div>Create a news user, let say: "<font class="Apple-style-span" face="Courier">zope</font>" with group "<font class="Apple-style-span" face="Courier">zope</font>", change the ownerships as follow:</div><div><br></div><div><font class="Apple-style-span" face="Courier">&nbsp;&nbsp; &nbsp;chown -R zope:zope /opt/zope</font></div><div><br></div><div>and change the&nbsp;<font class="Apple-style-span" face="Courier">effective-user</font> to <font class="Apple-style-span" face="Courier">zope</font> and try again!!</div><div><br></div><div>Cheers,</div><div>Michele</div><div><br></div><div><br></div><div><div><div>On Nov 19, 2010, at 12:32 , smita kamdar wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><meta http-equiv="Content-Type" content="text/html; charset=Windows-1252"><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><div><font size="3" color="maroon" face="Times New Roman"><span style="font-size:12.0pt;color:maroon">&nbsp;</span></font><br class="webkit-block-placeholder"></div><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><div><font size="3" color="maroon" face="Times New Roman"><span style="font-size:12.0pt;color:maroon">&nbsp;</span></font><br class="webkit-block-placeholder"></div><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><div><font size="3" color="#333399" face="Times New Roman"><span style="font-size:12.0pt;color:#333399">&nbsp;</span></font><br class="webkit-block-placeholder"></div><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><div><font size="3" color="#333399" face="Times New Roman"><span style="font-size:12.0pt;color:#333399">&nbsp;</span></font><br class="webkit-block-placeholder"></div><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">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
libpq.so.3 =&gt; /home/postgres/7.4.13/lib/libpq.so.3 (0x005b1000)</span></font></p><div><font size="3" color="#333399" face="Times New Roman"><span style="font-size:12.0pt;color:#333399">&nbsp;</span></font><br class="webkit-block-placeholder"></div><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><div><font size="3" color="maroon" face="Times New Roman"><span style="font-size:12.0pt;color:maroon">&nbsp;</span></font><br class="webkit-block-placeholder"></div><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">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
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">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
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">&nbsp; File
"/opt/zope/lib/python/Zope2/Startup/run.py", 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">&nbsp;&nbsp;&nbsp; run()</span></font></p><p class="MsoNormal"><font size="3" color="#333399" face="Times New Roman"><span style="font-size:12.0pt;color:#333399">&nbsp; File "/opt/zope/lib/python/Zope2/Startup/run.py",
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">&nbsp;&nbsp;&nbsp; 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">&nbsp; File
"/opt/zope/lib/python/Zope2/Startup/__init__.py", 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">&nbsp;&nbsp;&nbsp; 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">&nbsp; File
"/opt/zope/lib/python/Zope2/Startup/__init__.py", 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">&nbsp;&nbsp;&nbsp; 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">&nbsp; File
"/opt/zope/lib/python/Zope2/Startup/__init__.py", 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">&nbsp;&nbsp;&nbsp; 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><div><font size="3" color="#333399" face="Times New Roman"><span style="font-size:12.0pt;color:#333399">&nbsp;</span></font><br class="webkit-block-placeholder"></div><div><font size="3" color="maroon" face="Times New Roman"><span style="font-size:12.0pt;color:maroon">&nbsp;</span></font><br class="webkit-block-placeholder"></div><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 - &nbsp;</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">#&nbsp;&nbsp;&nbsp;&nbsp; If you intend
to run Zope as the "root" 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">#&nbsp;&nbsp;&nbsp;&nbsp; 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">#&nbsp;&nbsp;&nbsp;&nbsp; will 'suid'
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">#&nbsp;&nbsp;&nbsp;&nbsp; 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><div><font size="3" color="maroon" face="Times New Roman"><span style="font-size:12.0pt;color:maroon">&nbsp;</span></font><br class="webkit-block-placeholder"></div><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><div><font size="3" color="maroon" face="Times New Roman"><span style="font-size:12.0pt;color:maroon">&nbsp;</span></font><br class="webkit-block-placeholder"></div><p class="MsoNormal"><font size="3" color="maroon" face="Times New Roman"><span style="font-size:12.0pt;color:maroon">-------------------------------------------------------------------------------------------------------------------------------------------------------------------</span></font></p><div><font size="3" color="maroon" face="Times New Roman"><span style="font-size:12.0pt;color:maroon">&nbsp;</span></font><br class="webkit-block-placeholder"></div><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">#&nbsp;&nbsp;&nbsp;&nbsp; If you intend
to run Zope as the "root" 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">#&nbsp;&nbsp;&nbsp;&nbsp; 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">#&nbsp;&nbsp;&nbsp;&nbsp; will 'suid'
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">#&nbsp;&nbsp;&nbsp;&nbsp; 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">&nbsp;&nbsp;&nbsp; effective-user root</span></font></p>

<div style="border:none;border-bottom:solid windowtext 1.0pt;padding:0in 0in 1.0pt 0in"><div><font size="3" color="maroon" face="Times New Roman"><span style="font-size:12.0pt;color:maroon">&nbsp;</span></font><br class="webkit-block-placeholder"></div>

</div><div><font size="3" color="maroon" face="Times New Roman"><span style="font-size:12.0pt;color:maroon">&nbsp;</span></font><br class="webkit-block-placeholder"></div><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><div><font size="3" color="maroon" face="Times New Roman"><span style="font-size:12.0pt;color:maroon">&nbsp;</span></font><br class="webkit-block-placeholder"></div><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">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
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">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
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">&nbsp; File
"/opt/zope/lib/python/Zope2/Startup/run.py", 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">&nbsp;&nbsp;&nbsp; run()</span></font></p><p class="MsoNormal"><font size="3" color="#333399" face="Times New Roman"><span style="font-size:12.0pt;color:#333399">&nbsp; File "/opt/zope/lib/python/Zope2/Startup/run.py",
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">&nbsp;&nbsp;&nbsp; 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">&nbsp; File
"/opt/zope/lib/python/Zope2/Startup/__init__.py", 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">&nbsp;&nbsp;&nbsp; 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">&nbsp; File
"/opt/zope/lib/python/Zope2/Startup/__init__.py", 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">&nbsp;&nbsp;&nbsp; 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">&nbsp; File
"/opt/zope/lib/python/Zope2/Startup/__init__.py", 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">&nbsp;&nbsp;&nbsp; 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><div><font size="3" color="#333399" face="Times New Roman"><span style="font-size:12.0pt;color:#333399">&nbsp;</span></font><br class="webkit-block-placeholder"></div><div><font size="3" color="maroon" face="Times New Roman"><span style="font-size:12.0pt;color:maroon">&nbsp;</span></font><br class="webkit-block-placeholder"></div><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><div><font size="3" color="maroon" face="Times New Roman"><span style="font-size:12.0pt;color:maroon">&nbsp;</span></font><br class="webkit-block-placeholder"></div><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><div><font size="3" color="maroon" face="Times New Roman"><span style="font-size:12.0pt;color:maroon">&nbsp;</span></font><br class="webkit-block-placeholder"></div><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. &nbsp;</span></font></p><div><font size="3" color="maroon" face="Times New Roman"><span style="font-size:12.0pt;color:maroon">&nbsp;</span></font><br class="webkit-block-placeholder"></div>

</div>

</div>


</div>
<span>&lt;run.zip&gt;</span><span>&lt;__init__.zip&gt;</span>_______________________________________________<br>Zope-DB mailing list<br><a href="mailto:Zope-DB@zope.org">Zope-DB@zope.org</a><br>https://mail.zope.org/mailman/listinfo/zope-db<br></blockquote></div><br><div>
<span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: 'Trebuchet MS'; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; ">--&nbsp;<br>ETH Zürich<br>Michele Marcionelli<br>IT Support Gruppe D-MATH<br>HG G 32.1<br>Rämistrasse 101<br>CH–8092 Zürich<br><br><a href="mailto:michele.marcionelli@math.ethz.ch">michele.marcionelli@math.ethz.ch</a><br>http://www.math.ethz.ch/~michele<br><br>+41 44 632 6193 Telefon<br>+41 44 632 1354 Fax</span>
</div>
<br></div></body></html>