Re: [Zope-dev] compilezpy (compileall)

2001-11-21 Thread Danny William Adair

On Wednesday 21 November 2001 18:41, Richard Jones wrote:
 On Wednesday 21 November 2001 16:34, Danny William Adair wrote:
  As from what I know (leaving aside for a moment that I basically know
  nothing), Zope should be _started_ as root, but then be _running_ as
  nobody. This does make sense to me, in a couple of ways. :-)
 
  Do you know when or where this switch to nobody is performed?

 in z2[s].py   (lines 831 onwards in z2s.py)

Cool!
This sounds like a really cool answer - just the kind I love - but...
I have never seen a z2s.py, and z2.py has less than 800 lines.
Please tell me where I'm being thick here...

thx,
Danny

___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )



Re: [Zope-dev] compilezpy (compileall)

2001-11-21 Thread Richard Jones

On Wednesday 21 November 2001 19:49, Danny William Adair wrote:
 On Wednesday 21 November 2001 18:41, Richard Jones wrote:
  On Wednesday 21 November 2001 16:34, Danny William Adair wrote:
   As from what I know (leaving aside for a moment that I basically know
   nothing), Zope should be _started_ as root, but then be _running_ as
   nobody. This does make sense to me, in a couple of ways. :-)
  
   Do you know when or where this switch to nobody is performed?
 
  in z2[s].py   (lines 831 onwards in z2s.py)

 Cool!
 This sounds like a really cool answer - just the kind I love - but...
 I have never seen a z2s.py, and z2.py has less than 800 lines.
 Please tell me where I'm being thick here...

You're not - z2s is from M2Crypto and is a modified z2.py that's used to 
control the SSL-enabled Zope.


Richard

___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )



Re: [Zope-dev] compilezpy (compileall)

2001-11-20 Thread Richard Jones

On Wednesday 21 November 2001 15:12, Danny William Adair wrote:
 I wondered if this (see subject) was totally necessary during the
 installation. My Zope installation seems to run fine when I delete all the
 *.pyc and just start it. Obviously it runs slower the first time, but
 that's all I can see.

If the server is run as nobody, that user probably won't have permission to 
write the compiled bytecodes to disk.


Richard

___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )



Re: [Zope-dev] compilezpy (compileall)

2001-11-20 Thread Danny William Adair

On Wednesday 21 November 2001 17:27, Richard Jones wrote:
 On Wednesday 21 November 2001 15:12, Danny William Adair wrote:
  I wondered if this (see subject) was totally necessary during the
  installation. My Zope installation seems to run fine when I delete all
  the *.pyc and just start it. Obviously it runs slower the first time, but
  that's all I can see.

 If the server is run as nobody, that user probably won't have permission to
 write the compiled bytecodes to disk.

Hawhoops. Yeah, that's reason enough... of course... how could I... 
sure...

Thank you for your help.

Hmm.
As from what I know (leaving aside for a moment that I basically know 
nothing), Zope should be _started_ as root, but then be _running_ as nobody. 
This does make sense to me, in a couple of ways. :-)

Do you know when or where this switch to nobody is performed?

thx,
Danny

___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )



Re: [Zope-dev] compilezpy (compileall)

2001-11-20 Thread Richard Jones

On Wednesday 21 November 2001 16:34, Danny William Adair wrote:
 As from what I know (leaving aside for a moment that I basically know
 nothing), Zope should be _started_ as root, but then be _running_ as
 nobody. This does make sense to me, in a couple of ways. :-)

 Do you know when or where this switch to nobody is performed?

in z2[s].py   (lines 831 onwards in z2s.py)



Richard

___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )