I was developing a Plone site this afternoon and exported it to a file, Plone.zexp. I then moved that file to the following directory on my Debian Linux box: /var/lib/zope/import I then go to import the Plone instance by entering Plone.zexp in the "Import file name" textbox and click on the "Import" button. However, when I do, I get the following error: Error Type: IOError Error Value: [Errno 13] Permission denied: '/var/lib/zope/instance/default/import/Plone.zexp' I thought that there might be a problem with permissions because the import folder's owner is root and its group is root. However, *every* file in directory associated with Zope shares this trait, and I haven't seen any other problems elsewhere. Also, I'm logged in as a user that has Manager and Owner rights over the root folder of my Zope instance. I googled for some help but couldn't find anything. Has anyone else seen a problem like this? Thanks in advance for any help! Tom Purl
When Zope is started as root it will be run as an other user (nobody i believe). Therefore this user has to have the tigth to read your *.zexp. This is explained in the various files you find in the doc directory of your Zope. You can tell Zope as what user it should run with the -u parameter. Something like python z2.py -u zope would therefore make Zope to run as user Zope. Robert On Tuesday 06 January 2004 03:09, Tom Purl wrote:
I was developing a Plone site this afternoon and exported it to a file, Plone.zexp. I then moved that file to the following directory on my Debian Linux box:
/var/lib/zope/import
I then go to import the Plone instance by entering Plone.zexp in the "Import file name" textbox and click on the "Import" button. However, when I do, I get the following error:
Error Type: IOError Error Value: [Errno 13] Permission denied: '/var/lib/zope/instance/default/import/Plone.zexp'
I thought that there might be a problem with permissions because the import folder's owner is root and its group is root. However, *every* file in directory associated with Zope shares this trait, and I haven't seen any other problems elsewhere. Also, I'm logged in as a user that has Manager and Owner rights over the root folder of my Zope instance.
I googled for some help but couldn't find anything. Has anyone else seen a problem like this?
Thanks in advance for any help!
Tom Purl
_______________________________________________ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
On Tuesday 06 January 2004 02:09, Tom Purl wrote:
I was developing a Plone site this afternoon and exported it to a file, Plone.zexp. I then moved that file to the following directory on my Debian Linux box:
/var/lib/zope/import
I then go to import the Plone instance by entering Plone.zexp in the "Import file name" textbox and click on the "Import" button. However, when I do, I get the following error:
Error Type: IOError Error Value: [Errno 13] Permission denied: '/var/lib/zope/instance/default/import/Plone.zexp'
I thought that there might be a problem with permissions because the import folder's owner is root and its group is root. However, *every* file in directory associated with Zope shares this trait, and I haven't seen any other problems elsewhere. Also, I'm logged in as a user that has Manager and Owner rights over the root folder of my Zope instance.
I googled for some help but couldn't find anything. Has anyone else seen a problem like this? Yes virtually everytime I import something. Just make sure the permissions allow you to read the file if you are not root. regards garry
Thanks in advance for any help!
Tom Purl
_______________________________________________ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Thanks for the help Robert and Garry! I ended up finding a file called zopectl that contained the username that Zope runs under on Debian Linux. The user was "zope", so I just did a chown on the file name and I was then able to import the file. My problem earlier was that I was trying to import the file when the "nobody" user owned the file. Thanks again! Tom Purl
participants (3)
-
garry saddington -
robert -
Tom Purl