At 17:48 2002-10-11 +0200, Holger Blasum said: >Hello *, > >I observed that under Debian woody, Zope 2.5.1 runs under the >user id 'www-data'. > >The python OS command os.getgroups() gives me an empty list when called >from an external method, although I had configured the user 'www-data' >to be the member of several groups. > >If, on the other hand, I run python with my user id from the command >line as a normal user, the command os.getgroups () gives me all the >groups am a member of (that's what I expected). > >Please enlighten.
The way that Zope changes user under the start up sequence doesn't change the groups. I'm not sure if this was due to a bug in earlier Python, but there might be a fix/more info about this in the mail archives or on zope.org or even in the collector (haven't check). Got the same problems a while back trying to execute Qmail commands with external methods some while ago. Regards, Johan Carlsson -- Torped Strategi och Kommunikation AB Johan Carlsson [EMAIL PROTECTED] Mail: Birkagatan 9 SE-113 36 Stockholm Sweden Visit: Västmannagatan 67, Stockholm, Sweden Phone +46-(0)8-32 31 23 Fax +46-(0)8-32 31 83 Mobil +46-(0)70-558 25 24 http://www.easypublisher.com http://www.torped.se _______________________________________________ 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 )