From owner-freebsd-questions@FreeBSD.ORG Sat Mar 19 08:52:30 2005 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 30BE116A4CE for ; Sat, 19 Mar 2005 08:52:30 +0000 (GMT) Received: from rproxy.gmail.com (rproxy.gmail.com [64.233.170.196]) by mx1.FreeBSD.org (Postfix) with ESMTP id AB6C343D2F for ; Sat, 19 Mar 2005 08:52:29 +0000 (GMT) (envelope-from singh.madhusudan@gmail.com) Received: by rproxy.gmail.com with SMTP id a41so424884rng for ; Sat, 19 Mar 2005 00:52:29 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:from:to:subject:date:user-agent:mime-version:content-type:content-transfer-encoding:content-disposition:message-id; b=FyOYEC95YZwx114FiVPjOyCIC2UIHDZNvxDg/f5c6fo6VglosxQo1RLCWvNy07ldlhWWQ0nTeC1Ea2Qx9Tz4SNOvTyUnJ+rphSUd8kpr9FLMgtBcd6m1SVMiM8RpkxgZR28BbELDA1F2YG1w9q+Yjl29ELp+2Y03OgA38UwX6cI= Received: by 10.38.152.6 with SMTP id z6mr3154533rnd; Sat, 19 Mar 2005 00:52:29 -0800 (PST) Received: from ?192.168.1.2? ([24.60.144.26]) by mx.gmail.com with ESMTP id m37sm1206849rnd.2005.03.19.00.52.28; Sat, 19 Mar 2005 00:52:29 -0800 (PST) From: Madhusudan Singh To: FreeBSD-questions@freebsd.org Date: Sat, 19 Mar 2005 03:53:26 -0500 User-Agent: KMail/1.7.1 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Message-Id: <200503190353.27164.singh.madhusudan@gmail.com> Subject: Effective user issue with zope X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 19 Mar 2005 08:52:30 -0000 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.