| Summary: | Impossible to create "Zope Tutorial" object with zope 2.6.0-r2 | ||
|---|---|---|---|
| Product: | Gentoo Linux | Reporter: | Thomas Estaben <tom> |
| Component: | Current packages | Assignee: | net-zope (OBSOLETE) <net-zope+disabled> |
| Status: | RESOLVED DUPLICATE | ||
| Severity: | normal | ||
| Priority: | High | ||
| Version: | unspecified | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Package list: | Runtime testing required: | --- | |
|
Description
Thomas Estaben
2003-02-19 10:54:19 UTC
Hi, This seems to be a problem with ZGadflyDA. It wants zope to run as -u root. I can't fix this, but I'll keep my eyes open for a patch. If you could locate a patch, that would be great. :D In the mean time the work-around is to set -u root. Thank you for pointing this out. --kutsuya A directory has a wrong owner. QUICK FIX: as root "chown zope /var/lib/zope/<zope-instance>/var -R" ie : chown zope /var/lib/zope/zope-2_6_1/var -R The supplied fix yesterday is a quite bad idea. Afterwards, Zope cannot start up if shut down. You can of course fix this by resetting ownership of ZOPE_INSTANCE_DIR/var to root. Hi, I've encountered this problem too, and (before reading this bug report) performed the quick fix - eventually the restart failure occurred. I've got two suggestions for this (after changing var back to root owned): 1, Add user 'zope' to group 'zope-2_6_1', this allows writing into the var directory. or: 2, chmod o+rwx /var/lib/zope/zope-2_6_1/var I'm currently going with the first option, and everything seems to be fine - zope starts ok, and the tutorial installs. I'm new to Zope, so I'm not sure what security implications either method has, esp. when several zope instances exist. I'm no security expert, but while I was fighting this same problem, I noticed that if you take the approach of making the zope user a member of the zope-2_6_1 group, you should probably make zope-2_6_1 the "inital group" (usermod -G zope-2_6_1 zope), as opposed to just adding the zope user to the zope-2_6_1 group. (usermod -g zope-2_6_1) The difference is when I added ZGadflyDA and the ZopeTutorial, the gadfly files belonged to the users group, which sounds suspiciously like any other files that Zope might create later on will also be accessible to everyone in the users group, and that seems like a bad thing. |