I've installed Zope 2.4.1 and it has correctly compiled (I downloaded and installed Python 2.1.1) but when I start the server, at the end I get a message: date/time: PANIC(300) z2 Startup exception Traceback (innermost last): file Zope/Zope-2.4.1-linux2-x86/z2.py, line 757, in ? IOError: [Errno 13] Permission denied '/Zope/Zope-2.4.1-linux2-x86/var/Z2.pid' I'm logged in as root with full permissions. Can someone tell me why this problem is occuring and how I can fix it? Thanks. Mark
When you start Zope as root, Zope changes the UID to nobody. Check if the nobody user has permissions to write to the Z2.pid file. Andreas ----- Original Message ----- From: "Mark S. Halegua" <farsight-data@mindspring.com> To: <zope@zope.org> Sent: Monday, October 22, 2001 10:52 Subject: [Zope] Install doesn't start properly
I've installed Zope 2.4.1 and it has correctly compiled (I downloaded and installed Python 2.1.1) but when I start the server, at the end I get a message:
date/time: PANIC(300) z2 Startup exception Traceback (innermost last): file Zope/Zope-2.4.1-linux2-x86/z2.py, line 757, in ? IOError: [Errno 13] Permission denied '/Zope/Zope-2.4.1-linux2-x86/var/Z2.pid'
I'm logged in as root with full permissions.
Can someone tell me why this problem is occuring and how I can fix it?
Thanks.
Mark
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Andreas Jung wrote:
When you start Zope as root, Zope changes the UID to nobody. Check if the nobody user has permissions to write to the Z2.pid file.
This behavior really needs to be changed. Obviously nobody is better than root, but it's still not the safety net everyone thinks it is (see http://www.zope.org/Members/zigg/DontRunAsNobody). Z2 needs to quit if it's being run as root. I would supply a patch but (a) there's no Collector, and (b) I had an issue in the Collector for a long time wrt "nobody" that got pretty much ignored. Sorry for the tone, but this whole nobody thing makes me cranky. :-) -- Matt Behrens <matt.behrens@kohler.com> System Analyst, Baker Furniture
On Mon, Oct 22, 2001 at 11:53:08AM -0400, Behrens Matt - Grand Rapids wrote:
Andreas Jung wrote:
When you start Zope as root, Zope changes the UID to nobody. Check if the nobody user has permissions to write to the Z2.pid file.
This behavior really needs to be changed. Obviously nobody is better than root, but it's still not the safety net everyone thinks it is (see http://www.zope.org/Members/zigg/DontRunAsNobody). Z2 needs to quit if it's being run as root.
I would supply a patch but (a) there's no Collector, and (b) I had an issue in the Collector for a long time wrt "nobody" that got pretty much ignored.
Sorry for the tone, but this whole nobody thing makes me cranky. :-)
The server needs to start as root to be able to bind to lower port numbers, like port 80. The above URL confuses running as nobody and having the files owned by nobody. Files should be owned by root (which it would do if installed as root) and you can run as nobody, provided that nobody has permission to write to the var directory. -- Martijn Pieters | Software Engineer mailto:mj@zope.com | Zope Corporation http://www.zope.com/ | Creators of Zope http://www.zope.org/ ---------------------------------------------
On Mon, Oct 22, 2001 at 11:53:08AM -0400, Behrens Matt - Grand Rapids wrote:
When you start Zope as root, Zope changes the UID to nobody. Check if the nobody user has permissions to write to the Z2.pid file.
This behavior really needs to be changed. Obviously nobody is better than root, but it's still not the safety net everyone thinks it is (see http://www.zope.org/Members/zigg/DontRunAsNobody). Z2 needs to quit if it's being run as root.
I disagree. Let's say it "Z2 must quit with an error message and explanation if it's being run as root and -u option omitted". Ok? Oleg. -- Oleg Broytmann http://www.zope.org/Members/phd/ phd@phd.pp.ru Programmers don't die, they just GOSUB without RETURN.
participants (5)
-
Andreas Jung -
Behrens Matt - Grand Rapids -
Mark S. Halegua -
Martijn Pieters -
Oleg Broytmann