which permissions are needed to create .pyc files
I have my Zope-Process running with uid zope and uid zope in the group users. I am developing a product MyProduct in ZINSTANCE_HOME/Products/MyProducts with this setting: drwxrwxr-x 6 perry users 616 Feb 18 20:25 MyProduct when I refresh MyProduct in the control-panel, no .pyc files are created. the amazing thing is that when I run python as the user zope and do an import MyProduct in the Products the .pyc files are created with: -rw-r--r-- 1 lzope lzope 24433 Feb 18 20:38 Client.pyc also when I do a chown zope:users MyProduct and refresh the .pyc files are generated with permissions: -rw-r--r-- 1 lzope lzope 24433 Feb 18 20:38 Client.pyc the same is true if I do: chmod a+w MyProduct which I apparently don't want to do - Mit freundlichen Grüßen Joachim Schmitz -------------------------------------------------------------------- AixtraWare Ingenieurbüro für Internetanwendungen Telefon: +49-2464-8851, FAX: +49-2464-905163 --------------------------------------------------------------------
Joachim Schmitz wrote at 2003-2-18 19:48 +0100:
I have my Zope-Process running with uid zope and uid zope in the group users. I am developing a product MyProduct in
ZINSTANCE_HOME/Products/MyProducts with this setting:
drwxrwxr-x 6 perry users 616 Feb 18 20:25 MyProduct
when I refresh MyProduct in the control-panel, no .pyc files are created.
the amazing thing is that when I run python as the user zope and do an import MyProduct in the Products
the .pyc files are created with:
Looks as if your Zope would not run as user "zope" (or at least not be in group "users") Dieter
--On Mittwoch, Februar 19, 2003 20:49:30 +0100 Dieter Maurer <dieter@handshake.de> wrote:
Joachim Schmitz wrote at 2003-2-18 19:48 +0100:
I have my Zope-Process running with uid zope and uid zope in the group users. I am developing a product MyProduct in
ZINSTANCE_HOME/Products/MyProducts with this setting:
drwxrwxr-x 6 perry users 616 Feb 18 20:25 MyProduct
when I refresh MyProduct in the control-panel, no .pyc files are created. > the amazing thing is that when I run python as the user zope and do an import MyProduct in the Products
the .pyc files are created with:
Looks as if your Zope would not run as user "zope" (or at least not be in group "users")
It looks like, but this is not the case, when I set the permission "a+w" the pyc files are created with "zope zope" and zope is in the group users. This is by the way under debian Linux. -- Mit freundlichen Grüßen Joachim Schmitz -------------------------------------------------------------------- AixtraWare Ingenieurbüro für Internetanwendungen Telefon: +49-2464-8851, FAX: +49-2464-905163 --------------------------------------------------------------------
participants (2)
-
Dieter Maurer -
Joachim Schmitz