Re: Zope_Database_issue

Michele Marcionelli <[email protected]> Fri, 19 Nov 2010 14:17:45 +0100
Newsgroups gmane.comp.web.zope.database
Message-ID <[email protected]>
--===============1508692701536033817==
Content-Type: multipart/alternative; boundary="Apple-Mail-11-480336350"

--Apple-Mail-11-480336350
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain; charset="windows-1252"

Hi Smita

running Zope (or a generally a server) as "root" is newer a good idea =
(for several reasons; one of them: security). Zope probably avoid  this =
problem by producing the error message that you posted (I just tested =
it, and I also got the same message).

Create a news user, let say: "zope" with group "zope", change the =
ownerships as follow:

    chown -R zope:zope /opt/zope

and change the effective-user to zope and try again!!

Cheers,
Michele


On Nov 19, 2010, at 12:32 , smita kamdar wrote:

>=20
> Hi,
>=20
> =20
> To make the permissions, owner & group of all the installables same, I =
changed the permissions to 777 & owner & group to root for all the =
installables.
>=20
> =20
> Now I am able to get the output of the following commands -
>=20
> [root@test bin]# ls -l /home/postgres/7.4.13/lib/libpq.so.3
>=20
> lrwxrwxrwx. 1 root root 12 2010-11-09 23:59 =
/home/postgres/7.4.13/lib/libpq.so.3 -> libpq.so.3.1
>=20
> =20
> [root@test bin]# export LD_LIBRARY_PATH=3D/home/postgres/7.4.13/lib
>=20
> [root@test bin]# echo $LD_LIBRARY_PATH
>=20
> /home/postgres/7.4.13/lib
>=20
> =20
> [root@test bin]# ldd =
/home/test/Python/2.4.4/lib/python2.4/site-packages/psycopgmodule.so | =
grep libpq.so
>=20
>         libpq.so.3 =3D> /home/postgres/7.4.13/lib/libpq.so.3 =
(0x005b1000)
>=20
> =20
> But when I start the zope as root user, I face the following error -
>=20
> =20
> [root@test bin]# ./zopectl fg
>=20
> /opt/zope/bin/runzope -X debug-mode=3Don
>=20
> 2010-11-19 21:10:21 INFO ZServer HTTP server started at Fri Nov 19 =
21:10:21 2010
>=20
>         Hostname: 0.0.0.0
>=20
>         Port: 8080
>=20
> 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)
>=20
> Traceback (most recent call last):
>=20
>   File "/opt/zope/lib/python/Zope2/Startup/run.py", line 56, in ?
>=20
>     run()
>=20
>   File "/opt/zope/lib/python/Zope2/Startup/run.py", line 21, in run
>=20
>     starter.prepare()
>=20
>   File "/opt/zope/lib/python/Zope2/Startup/__init__.py", line 105, in =
prepare
>=20
>     self.dropPrivileges()
>=20
>   File "/opt/zope/lib/python/Zope2/Startup/__init__.py", line 256, in =
dropPrivileges
>=20
>     return dropPrivileges(self.cfg)
>=20
>   File "/opt/zope/lib/python/Zope2/Startup/__init__.py", line 425, in =
dropPrivileges
>=20
>     raise ZConfig.ConfigurationError(msg)
>=20
> ZConfig.ConfigurationError: A user was not specified to setuid to; fix =
this to start as root (change the effective-user directive in zope.conf)
>=20
> =20
> =20
> The effective user part in /etc/zope.conf file looks as shown below - =20=

>=20
> =
--------------------------------------------------------------------------=
--------------------------------------------------------------------------=
---------------
>=20
> # Directive: effective-user
>=20
> #
>=20
> # Description:
>=20
> #     If you intend to run Zope as the "root" user, you must supply =
this
>=20
> #     directive with an effective username or userid number to which =
Zope
>=20
> #     will 'suid' after the server ports are bound. This directive =
only
>=20
> #     has effect under UNIX and if Zope is started as the root user.
>=20
> #
>=20
> # Default: unset
>=20
> #
>=20
> # Example:
>=20
> #
>=20
> # effective-user chrism
>=20
> =
--------------------------------------------------------------------------=
--------------------------------------------------------------------------=
-------------
>=20
> =20
> 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 =
=96
>=20
> =20
> =
--------------------------------------------------------------------------=
--------------------------------------------------------------------------=
---------------
>=20
> =20
> # Directive: effective-user
>=20
> #
>=20
> # Description:
>=20
> #     If you intend to run Zope as the "root" user, you must supply =
this
>=20
> #     directive with an effective username or userid number to which =
Zope
>=20
> #     will 'suid' after the server ports are bound. This directive =
only
>=20
> #     has effect under UNIX and if Zope is started as the root user.
>=20
> #
>=20
> # Default: unset
>=20
> #
>=20
> # Example:
>=20
> #
>=20
>     effective-user root
>=20
> =20
> =20
> After changing the above file, When I started zope as root, it is =
showing the below error =96
>=20
> =20
> [root@test bin]# ./zopectl fg
>=20
> /opt/zope/bin/runzope -X debug-mode=3Don
>=20
> 2010-11-19 21:19:47 INFO ZServer HTTP server started at Fri Nov 19 =
21:19:47 2010
>=20
>         Hostname: 0.0.0.0
>=20
>         Port: 8080
>=20
> 2010-11-19 21:19:47 ERROR Zope Cannot start Zope with the effective =
user as the root user
>=20
> Traceback (most recent call last):
>=20
>   File "/opt/zope/lib/python/Zope2/Startup/run.py", line 56, in?
>=20
>     run()
>=20
>   File "/opt/zope/lib/python/Zope2/Startup/run.py", line 21, in run
>=20
>     starter.prepare()
>=20
>   File "/opt/zope/lib/python/Zope2/Startup/__init__.py", line 105, in =
prepare
>=20
>     self.dropPrivileges()
>=20
>   File "/opt/zope/lib/python/Zope2/Startup/__init__.py", line 256, in =
dropPrivileges
>=20
>     return dropPrivileges(self.cfg)
>=20
>   File "/opt/zope/lib/python/Zope2/Startup/__init__.py", line 449, in =
dropPrivileges
>=20
>     raise ZConfig.ConfigurationError(msg)
>=20
> ZConfig.ConfigurationError: Cannot start Zope with the effective user =
as the root user
>=20
> =20
> =20
> Have I made any mistake in changing the effective user part in =
zope.conf ?
>=20
> =20
> Do you think I have done right? Or is this some other error?
>=20
> =20
> Also find attached the two files in which it is showing errors. =20
>=20
> =20
> <run.zip><__init__.zip>_______________________________________________
> Zope-DB mailing list
> [email protected]
> https://mail.zope.org/mailman/listinfo/zope-db

--=20
ETH Z=FCrich
Michele Marcionelli
IT Support Gruppe D-MATH
HG G 32.1
R=E4mistrasse 101
CH=968092 Z=FCrich

[email protected]
http://www.math.ethz.ch/~michele

+41 44 632 6193 Telefon
+41 44 632 1354 Fax


--Apple-Mail-11-480336350
Content-Transfer-Encoding: quoted-printable
Content-Type: text/html; charset="windows-1252"

<html><head></head><body style=3D"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=3D"Apple-style-span" face=3D"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=3D"Apple-style-span" face=3D"Courier">zope</font>" with group =
"<font class=3D"Apple-style-span" face=3D"Courier">zope</font>", change =
the ownerships as follow:</div><div><br></div><div><font =
class=3D"Apple-style-span" face=3D"Courier">&nbsp;&nbsp; &nbsp;chown -R =
zope:zope /opt/zope</font></div><div><br></div><div>and change =
the&nbsp;<font class=3D"Apple-style-span" =
face=3D"Courier">effective-user</font> to <font class=3D"Apple-style-span"=
 face=3D"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=3D"Apple-interchange-newline"><blockquote =
type=3D"cite"><meta http-equiv=3D"Content-Type" content=3D"text/html; =
charset=3DWindows-1252"><br><div class=3D"gmail_quote">








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

<div><p class=3D"MsoNormal"><font size=3D"3" color=3D"maroon" =
face=3D"Times New Roman"><span =
style=3D"font-size:12.0pt;color:maroon">Hi,</span></font></p><div><font =
size=3D"3" color=3D"maroon" face=3D"Times New Roman"><span =
style=3D"font-size:12.0pt;color:maroon">&nbsp;</span></font><br =
class=3D"webkit-block-placeholder"></div><p class=3D"MsoNormal"><font =
size=3D"3" color=3D"maroon" face=3D"Times New Roman"><span =
style=3D"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=3D"3" color=3D"maroon" face=3D"Times =
New Roman"><span =
style=3D"font-size:12.0pt;color:maroon">&nbsp;</span></font><br =
class=3D"webkit-block-placeholder"></div><p class=3D"MsoNormal"><font =
size=3D"3" color=3D"maroon" face=3D"Times New Roman"><span =
style=3D"font-size:12.0pt;color:maroon">Now I am able to get the output =
of the
following commands -</span></font></p><p class=3D"MsoNormal"><font =
size=3D"3" color=3D"#333399" face=3D"Times New Roman"><span =
style=3D"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=3D"MsoNormal"><font size=3D"3" color=3D"#333399" face=3D"Times New =
Roman"><span style=3D"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=3D"3" color=3D"#333399" =
face=3D"Times New Roman"><span =
style=3D"font-size:12.0pt;color:#333399">&nbsp;</span></font><br =
class=3D"webkit-block-placeholder"></div><p class=3D"MsoNormal"><font =
size=3D"3" color=3D"#333399" face=3D"Times New Roman"><span =
style=3D"font-size:12.0pt;color:#333399">[root@test bin]# export
LD_LIBRARY_PATH=3D/home/postgres/7.4.13/lib</span></font></p><p =
class=3D"MsoNormal"><font size=3D"3" color=3D"#333399" face=3D"Times New =
Roman"><span style=3D"font-size:12.0pt;color:#333399">[root@test bin]# =
echo $LD_LIBRARY_PATH</span></font></p><p class=3D"MsoNormal"><font =
size=3D"3" color=3D"#333399" face=3D"Times New Roman"><span =
style=3D"font-size:12.0pt;color:#333399">/home/postgres/7.4.13/lib</span><=
/font></p><div><font size=3D"3" color=3D"#333399" face=3D"Times New =
Roman"><span =
style=3D"font-size:12.0pt;color:#333399">&nbsp;</span></font><br =
class=3D"webkit-block-placeholder"></div><p class=3D"MsoNormal"><font =
size=3D"3" color=3D"#333399" face=3D"Times New Roman"><span =
style=3D"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=3D"MsoNormal"><font size=3D"3" =
color=3D"#333399" face=3D"Times New Roman"><span =
style=3D"font-size:12.0pt;color:#333399">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;
libpq.so.3 =3D&gt; /home/postgres/7.4.13/lib/libpq.so.3 =
(0x005b1000)</span></font></p><div><font size=3D"3" color=3D"#333399" =
face=3D"Times New Roman"><span =
style=3D"font-size:12.0pt;color:#333399">&nbsp;</span></font><br =
class=3D"webkit-block-placeholder"></div><p class=3D"MsoNormal"><font =
size=3D"3" color=3D"maroon" face=3D"Times New Roman"><span =
style=3D"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=3D"3" =
color=3D"maroon" face=3D"Times New Roman"><span =
style=3D"font-size:12.0pt;color:maroon">&nbsp;</span></font><br =
class=3D"webkit-block-placeholder"></div><p class=3D"MsoNormal"><font =
size=3D"3" color=3D"#333399" face=3D"Times New Roman"><span lang=3D"NL" =
style=3D"font-size:12.0pt;color:#333399">[root@test bin]# ./zopectl =
fg</span></font></p><p class=3D"MsoNormal"><font size=3D"3" =
color=3D"#333399" face=3D"Times New Roman"><span lang=3D"NL" =
style=3D"font-size:12.0pt;color:#333399">/opt/zope/bin/runzope -X
debug-mode=3Don</span></font></p><p class=3D"MsoNormal"><font size=3D"3" =
color=3D"#333399" face=3D"Times New Roman"><span =
style=3D"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=3D"MsoNormal"><font size=3D"3" color=3D"#333399" face=3D"Times New =
Roman"><span =
style=3D"font-size:12.0pt;color:#333399">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;
Hostname: 0.0.0.0</span></font></p><p class=3D"MsoNormal"><font size=3D"3"=
 color=3D"#333399" face=3D"Times New Roman"><span =
style=3D"font-size:12.0pt;color:#333399">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;
Port: 8080</span></font></p><p class=3D"MsoNormal"><font size=3D"3" =
color=3D"#333399" face=3D"Times New Roman"><span =
style=3D"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=3D"MsoNormal"><font size=3D"3" color=3D"#333399" face=3D"Times New =
Roman"><span style=3D"font-size:12.0pt;color:#333399">Traceback (most =
recent call last):</span></font></p><p class=3D"MsoNormal"><font =
size=3D"3" color=3D"#333399" face=3D"Times New Roman"><span =
style=3D"font-size:12.0pt;color:#333399">&nbsp; File
"/opt/zope/lib/python/Zope2/Startup/run.py", line 56, in =
?</span></font></p><p class=3D"MsoNormal"><font size=3D"3" =
color=3D"#333399" face=3D"Times New Roman"><span =
style=3D"font-size:12.0pt;color:#333399">&nbsp;&nbsp;&nbsp; =
run()</span></font></p><p class=3D"MsoNormal"><font size=3D"3" =
color=3D"#333399" face=3D"Times New Roman"><span =
style=3D"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=3D"MsoNormal"><font size=3D"3" =
color=3D"#333399" face=3D"Times New Roman"><span =
style=3D"font-size:12.0pt;color:#333399">&nbsp;&nbsp;&nbsp; =
starter.prepare()</span></font></p><p class=3D"MsoNormal"><font size=3D"3"=
 color=3D"#333399" face=3D"Times New Roman"><span =
style=3D"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=3D"MsoNormal"><font size=3D"3" =
color=3D"#333399" face=3D"Times New Roman"><span =
style=3D"font-size:12.0pt;color:#333399">&nbsp;&nbsp;&nbsp; =
self.dropPrivileges()</span></font></p><p class=3D"MsoNormal"><font =
size=3D"3" color=3D"#333399" face=3D"Times New Roman"><span =
style=3D"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=3D"MsoNormal"><font size=3D"3" =
color=3D"#333399" face=3D"Times New Roman"><span =
style=3D"font-size:12.0pt;color:#333399">&nbsp;&nbsp;&nbsp; return
dropPrivileges(self.cfg)</span></font></p><p class=3D"MsoNormal"><font =
size=3D"3" color=3D"#333399" face=3D"Times New Roman"><span =
style=3D"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=3D"MsoNormal"><font size=3D"3" =
color=3D"#333399" face=3D"Times New Roman"><span =
style=3D"font-size:12.0pt;color:#333399">&nbsp;&nbsp;&nbsp; raise
ZConfig.ConfigurationError(msg)</span></font></p><p =
class=3D"MsoNormal"><font size=3D"3" color=3D"#333399" face=3D"Times New =
Roman"><span =
style=3D"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=3D"3" color=3D"#333399" face=3D"Times New Roman"><span =
style=3D"font-size:12.0pt;color:#333399">&nbsp;</span></font><br =
class=3D"webkit-block-placeholder"></div><div><font size=3D"3" =
color=3D"maroon" face=3D"Times New Roman"><span =
style=3D"font-size:12.0pt;color:maroon">&nbsp;</span></font><br =
class=3D"webkit-block-placeholder"></div><p class=3D"MsoNormal"><font =
size=3D"3" color=3D"maroon" face=3D"Times New Roman"><span =
style=3D"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=3D"MsoNormal"><font size=3D"3" color=3D"#333399" face=3D"Times New =
Roman"><span =
style=3D"font-size:12.0pt;color:#333399">---------------------------------=
--------------------------------------------------------------------------=
--------------------------------------------------------</span></font></p>=
<p class=3D"MsoNormal"><font size=3D"3" color=3D"#333399" face=3D"Times =
New Roman"><span style=3D"font-size:12.0pt;color:#333399"># Directive: =
effective-user</span></font></p><p class=3D"MsoNormal"><font size=3D"3" =
color=3D"#333399" face=3D"Times New Roman"><span =
style=3D"font-size:12.0pt;color:#333399">#</span></font></p><p =
class=3D"MsoNormal"><font size=3D"3" color=3D"#333399" face=3D"Times New =
Roman"><span style=3D"font-size:12.0pt;color:#333399"># =
Description:</span></font></p><p class=3D"MsoNormal"><font size=3D"3" =
color=3D"#333399" face=3D"Times New Roman"><span =
style=3D"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=3D"MsoNormal"><font size=3D"3" color=3D"#333399" face=3D"Times New =
Roman"><span =
style=3D"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=3D"MsoNormal"><font size=3D"3" color=3D"#333399" face=3D"Times New =
Roman"><span =
style=3D"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=3D"MsoNormal"><font size=3D"3" =
color=3D"#333399" face=3D"Times New Roman"><span =
style=3D"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=3D"MsoNormal"><font size=3D"3" color=3D"#333399" face=3D"Times New =
Roman"><span =
style=3D"font-size:12.0pt;color:#333399">#</span></font></p><p =
class=3D"MsoNormal"><font size=3D"3" color=3D"#333399" face=3D"Times New =
Roman"><span style=3D"font-size:12.0pt;color:#333399"># Default: =
unset</span></font></p><p class=3D"MsoNormal"><font size=3D"3" =
color=3D"#333399" face=3D"Times New Roman"><span =
style=3D"font-size:12.0pt;color:#333399">#</span></font></p><p =
class=3D"MsoNormal"><font size=3D"3" color=3D"#333399" face=3D"Times New =
Roman"><span style=3D"font-size:12.0pt;color:#333399"># =
Example:</span></font></p><p class=3D"MsoNormal"><font size=3D"3" =
color=3D"#333399" face=3D"Times New Roman"><span =
style=3D"font-size:12.0pt;color:#333399">#</span></font></p><p =
class=3D"MsoNormal"><font size=3D"3" color=3D"#333399" face=3D"Times New =
Roman"><span style=3D"font-size:12.0pt;color:#333399"># effective-user =
chrism</span></font></p><p class=3D"MsoNormal"><font size=3D"3" =
color=3D"#333399" face=3D"Times New Roman"><span =
style=3D"font-size:12.0pt;color:#333399">---------------------------------=
--------------------------------------------------------------------------=
------------------------------------------------------</span></font></p><d=
iv><font size=3D"3" color=3D"maroon" face=3D"Times New Roman"><span =
style=3D"font-size:12.0pt;color:maroon">&nbsp;</span></font><br =
class=3D"webkit-block-placeholder"></div><p class=3D"MsoNormal"><font =
size=3D"3" color=3D"maroon" face=3D"Times New Roman"><span =
style=3D"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 =96 </span></font></p><div><font size=3D"3" =
color=3D"maroon" face=3D"Times New Roman"><span =
style=3D"font-size:12.0pt;color:maroon">&nbsp;</span></font><br =
class=3D"webkit-block-placeholder"></div><p class=3D"MsoNormal"><font =
size=3D"3" color=3D"maroon" face=3D"Times New Roman"><span =
style=3D"font-size:12.0pt;color:maroon">----------------------------------=
--------------------------------------------------------------------------=
-------------------------------------------------------</span></font></p><=
div><font size=3D"3" color=3D"maroon" face=3D"Times New Roman"><span =
style=3D"font-size:12.0pt;color:maroon">&nbsp;</span></font><br =
class=3D"webkit-block-placeholder"></div><p class=3D"MsoNormal"><font =
size=3D"3" color=3D"#333399" face=3D"Times New Roman"><span =
style=3D"font-size:12.0pt;color:#333399"># Directive: =
effective-user</span></font></p><p class=3D"MsoNormal"><font size=3D"3" =
color=3D"#333399" face=3D"Times New Roman"><span =
style=3D"font-size:12.0pt;color:#333399">#</span></font></p><p =
class=3D"MsoNormal"><font size=3D"3" color=3D"#333399" face=3D"Times New =
Roman"><span style=3D"font-size:12.0pt;color:#333399"># =
Description:</span></font></p><p class=3D"MsoNormal"><font size=3D"3" =
color=3D"#333399" face=3D"Times New Roman"><span =
style=3D"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=3D"MsoNormal"><font size=3D"3" color=3D"#333399" face=3D"Times New =
Roman"><span =
style=3D"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=3D"MsoNormal"><font size=3D"3" color=3D"#333399" face=3D"Times New =
Roman"><span =
style=3D"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=3D"MsoNormal"><font size=3D"3" =
color=3D"#333399" face=3D"Times New Roman"><span =
style=3D"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=3D"MsoNormal"><font size=3D"3" color=3D"#333399" face=3D"Times New =
Roman"><span =
style=3D"font-size:12.0pt;color:#333399">#</span></font></p><p =
class=3D"MsoNormal"><font size=3D"3" color=3D"#333399" face=3D"Times New =
Roman"><span style=3D"font-size:12.0pt;color:#333399"># Default: =
unset</span></font></p><p class=3D"MsoNormal"><font size=3D"3" =
color=3D"#333399" face=3D"Times New Roman"><span =
style=3D"font-size:12.0pt;color:#333399">#</span></font></p><p =
class=3D"MsoNormal"><font size=3D"3" color=3D"#333399" face=3D"Times New =
Roman"><span style=3D"font-size:12.0pt;color:#333399"># =
Example:</span></font></p><p class=3D"MsoNormal"><font size=3D"3" =
color=3D"#333399" face=3D"Times New Roman"><span =
style=3D"font-size:12.0pt;color:#333399">#</span></font></p><p =
class=3D"MsoNormal"><font size=3D"3" color=3D"#333399" face=3D"Times New =
Roman"><span style=3D"font-size:12.0pt;color:#333399">&nbsp;&nbsp;&nbsp; =
effective-user root</span></font></p>

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

</div><div><font size=3D"3" color=3D"maroon" face=3D"Times New =
Roman"><span =
style=3D"font-size:12.0pt;color:maroon">&nbsp;</span></font><br =
class=3D"webkit-block-placeholder"></div><p class=3D"MsoNormal"><font =
size=3D"3" color=3D"maroon" face=3D"Times New Roman"><span =
style=3D"font-size:12.0pt;color:maroon">After changing the above file, =
When I
started zope as root, it is showing the below error =96 =
</span></font></p><div><font size=3D"3" color=3D"maroon" face=3D"Times =
New Roman"><span =
style=3D"font-size:12.0pt;color:maroon">&nbsp;</span></font><br =
class=3D"webkit-block-placeholder"></div><p class=3D"MsoNormal"><font =
size=3D"3" color=3D"#333399" face=3D"Times New Roman"><span lang=3D"NL" =
style=3D"font-size:12.0pt;color:#333399">[root@test bin]# ./zopectl =
fg</span></font></p><p class=3D"MsoNormal"><font size=3D"3" =
color=3D"#333399" face=3D"Times New Roman"><span lang=3D"NL" =
style=3D"font-size:12.0pt;color:#333399">/opt/zope/bin/runzope -X
debug-mode=3Don</span></font></p><p class=3D"MsoNormal"><font size=3D"3" =
color=3D"#333399" face=3D"Times New Roman"><span =
style=3D"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=3D"MsoNormal"><font size=3D"3" color=3D"#333399" face=3D"Times New =
Roman"><span =
style=3D"font-size:12.0pt;color:#333399">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;
Hostname: 0.0.0.0</span></font></p><p class=3D"MsoNormal"><font size=3D"3"=
 color=3D"#333399" face=3D"Times New Roman"><span =
style=3D"font-size:12.0pt;color:#333399">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;
Port: 8080</span></font></p><p class=3D"MsoNormal"><font size=3D"3" =
color=3D"#333399" face=3D"Times New Roman"><span =
style=3D"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=3D"MsoNormal"><font size=3D"3" color=3D"#333399" face=3D"Times New =
Roman"><span style=3D"font-size:12.0pt;color:#333399">Traceback (most =
recent call last):</span></font></p><p class=3D"MsoNormal"><font =
size=3D"3" color=3D"#333399" face=3D"Times New Roman"><span =
style=3D"font-size:12.0pt;color:#333399">&nbsp; File
"/opt/zope/lib/python/Zope2/Startup/run.py", line 56, =
in?</span></font></p><p class=3D"MsoNormal"><font size=3D"3" =
color=3D"#333399" face=3D"Times New Roman"><span =
style=3D"font-size:12.0pt;color:#333399">&nbsp;&nbsp;&nbsp; =
run()</span></font></p><p class=3D"MsoNormal"><font size=3D"3" =
color=3D"#333399" face=3D"Times New Roman"><span =
style=3D"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=3D"MsoNormal"><font size=3D"3" =
color=3D"#333399" face=3D"Times New Roman"><span =
style=3D"font-size:12.0pt;color:#333399">&nbsp;&nbsp;&nbsp; =
starter.prepare()</span></font></p><p class=3D"MsoNormal"><font size=3D"3"=
 color=3D"#333399" face=3D"Times New Roman"><span =
style=3D"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=3D"MsoNormal"><font size=3D"3" =
color=3D"#333399" face=3D"Times New Roman"><span =
style=3D"font-size:12.0pt;color:#333399">&nbsp;&nbsp;&nbsp; =
self.dropPrivileges()</span></font></p><p class=3D"MsoNormal"><font =
size=3D"3" color=3D"#333399" face=3D"Times New Roman"><span =
style=3D"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=3D"MsoNormal"><font size=3D"3" =
color=3D"#333399" face=3D"Times New Roman"><span =
style=3D"font-size:12.0pt;color:#333399">&nbsp;&nbsp;&nbsp; return
dropPrivileges(self.cfg)</span></font></p><p class=3D"MsoNormal"><font =
size=3D"3" color=3D"#333399" face=3D"Times New Roman"><span =
style=3D"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=3D"MsoNormal"><font size=3D"3" =
color=3D"#333399" face=3D"Times New Roman"><span =
style=3D"font-size:12.0pt;color:#333399">&nbsp;&nbsp;&nbsp; raise
ZConfig.ConfigurationError(msg)</span></font></p><p =
class=3D"MsoNormal"><font size=3D"3" color=3D"#333399" face=3D"Times New =
Roman"><span =
style=3D"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=3D"3" color=3D"#333399" =
face=3D"Times New Roman"><span =
style=3D"font-size:12.0pt;color:#333399">&nbsp;</span></font><br =
class=3D"webkit-block-placeholder"></div><div><font size=3D"3" =
color=3D"maroon" face=3D"Times New Roman"><span =
style=3D"font-size:12.0pt;color:maroon">&nbsp;</span></font><br =
class=3D"webkit-block-placeholder"></div><p class=3D"MsoNormal"><font =
size=3D"3" color=3D"maroon" face=3D"Times New Roman"><span =
style=3D"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=3D"3" =
color=3D"maroon" face=3D"Times New Roman"><span =
style=3D"font-size:12.0pt;color:maroon">&nbsp;</span></font><br =
class=3D"webkit-block-placeholder"></div><p class=3D"MsoNormal"><font =
size=3D"3" color=3D"maroon" face=3D"Times New Roman"><span =
style=3D"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=3D"3" =
color=3D"maroon" face=3D"Times New Roman"><span =
style=3D"font-size:12.0pt;color:maroon">&nbsp;</span></font><br =
class=3D"webkit-block-placeholder"></div><p class=3D"MsoNormal"><font =
size=3D"3" color=3D"maroon" face=3D"Times New Roman"><span =
style=3D"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=3D"3" =
color=3D"maroon" face=3D"Times New Roman"><span =
style=3D"font-size:12.0pt;color:maroon">&nbsp;</span></font><br =
class=3D"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=3D"mailto:[email protected]">[email protected]</a><br>https://mail.zope=
.org/mailman/listinfo/zope-db<br></blockquote></div><br><div>
<span class=3D"Apple-style-span" style=3D"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=FCrich<br>Michele Marcionelli<br>IT Support Gruppe =
D-MATH<br>HG G 32.1<br>R=E4mistrasse 101<br>CH=968092 Z=FCrich<br><br><a =
href=3D"mailto:[email protected]">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>=

--Apple-Mail-11-480336350--

--===============1508692701536033817==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
Zope-DB mailing list
[email protected]
https://mail.zope.org/mailman/listinfo/zope-db

--===============1508692701536033817==--