Date: Sat, 19 Mar 2005 03:53:26 -0500 From: Madhusudan Singh <singh.madhusudan@gmail.com> To: FreeBSD-questions@freebsd.org Subject: Effective user issue with zope Message-ID: <200503190353.27164.singh.madhusudan@gmail.com>
next in thread | raw e-mail | index | archive | help
Hi =A0I=A0am=A0setting=A0up=A0zope-2.7.5-final=A0on=A0a=A0server=A0(FreeBSD=A0= 5.3-RELEASE). Installed python-2.3.5 from sources (not ports). After configuring and compiling it correctly, I got an initial error on running runzope. =46ollowing the exhortation I found on the following webpage : http://mail.zope.org/pipermail/zope/2004-May/149695.html =A0I=A0created=A0a=A0new=A0user=A0(zopeuser),=A0added=A0it=A0to=A0group=A0u= sers,=A0and=A0tried=A0to=A0run runzope as that user. I also changed the effective_user to zopeuser in zope.conf. However, I now get the error : =A0Traceback=A0(most=A0recent=A0call=A0last): =A0=A0File=A0"/usr/local/zope/lib/python/Zope/Startup/run.py",=A0line=A050,= =A0in=A0? =A0=A0=A0=A0run() =A0=A0File=A0"/usr/local/zope/lib/python/Zope/Startup/run.py",=A0line=A019,= =A0in=A0run =A0=A0=A0=A0start_zope(opts.configroot) =A0=A0File=A0"/usr/local/zope/lib/python/Zope/Startup/__init__.py",=A0line= =A052,=A0in start_zope =A0=A0=A0=A0starter.startZope() =A0=A0File=A0"/usr/local/zope/lib/python/Zope/Startup/__init__.py",=A0line= =A0231,=A0in startZope =A0=A0=A0=A0Zope.startup() =A0=A0File=A0"/usr/local/zope/lib/python/Zope/__init__.py",=A0line=A047,=A0= in=A0startup =A0=A0=A0=A0_startup() =A0=A0File=A0"/usr/local/zope/lib/python/Zope/App/startup.py",=A0line=A057,= =A0in=A0startup =A0=A0=A0=A0DB=A0=3D=A0configuration.dbtab.getDatabase('/',=A0is_root=3D1) =A0=A0File=A0"/usr/local/zope/lib/python/DBTab/DBTab.py",=A0line=A096,=A0in= =A0getDatabase =A0=A0=A0=A0db=A0=3D=A0self._createDatabase(name,=A0is_root) =A0=A0File=A0"/usr/local/zope/lib/python/DBTab/DBTab.py",=A0line=A0113,=A0in _createDatabase =A0=A0=A0=A0db=A0=3D=A0factory.open() =A0=A0File=A0"/usr/local/zope/lib/python/Zope/Startup/datatypes.py",=A0line= =A0172,=A0in open =A0=A0=A0=A0DB=A0=3D=A0self.createDB() =A0=A0File=A0"/usr/local/zope/lib/python/Zope/Startup/datatypes.py",=A0line= =A0169,=A0in createDB =A0=A0=A0=A0return=A0ZODBDatabase.open(self) =A0=A0File=A0"/usr/local/zope/lib/python/ZODB/config.py",=A0line=A097,=A0in= =A0open =A0=A0=A0=A0return=A0ZODB.DB(section.storage.open(), =A0=A0File=A0"/usr/local/zope/lib/python/ZODB/config.py",=A0line=A0128,=A0i= n=A0open =A0=A0=A0=A0quota=3Dself.config.quota) =A0=A0File=A0"/usr/local/zope/lib/python/ZODB/FileStorage.py",=A0line=A0227= ,=A0in __init__ =A0=A0=A0=A0self._lock_file=A0=3D=A0LockFile(file_name=A0+=A0'.lock') =A0=A0File=A0"/usr/local/zope/lib/python/ZODB/lock_file.py",=A0line=A060,= =A0in=A0__init__ =A0=A0=A0=A0self._fp=A0=3D=A0open(path,=A0'w+') IOError: [Errno 13] Permission denied: '/usr/local/zope/instance/var/Data.fs.lock' =A0I=A0understand=A0partially=A0why=A0this=A0error=A0is=A0occuring=A0-=A0zo= peuser=A0does=A0not=A0have write permissions in the instance directory. I wonder how is this issue resolved - does one change the group ownership of the entire zope tree to a new group (say zopeusers) and add zopeuser to that group, or what ? Thanks.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200503190353.27164.singh.madhusudan>