On Wed, Jan 6, 2010 at 1:41 AM, Carsten Haese <carsten.ha...@gmail.com>wrote:
> Victor Subervi wrote: > > Hi; > > I have a script that is called via the web. This script writes another > > script that is also called by the web, which in turn needs to have > > execution privileges. The problem is that the programmatically created > > file is owned by apache.apache and thus doesn't have execution > > privileges. I've tried os.chown(...) but this throws an OSError. I > > understand that chown'ing programmatically opens a big security hole. > > However, setting the gid to give apache execution privileges isn't any > > better. What do you suggest? > > I suggest you find a way to achieve whatever it is you are trying to > achieve without having to execute programmatically created scripts. What > is the underlying problem you're trying to solve with this approach? > As I was writing to respond, I re-thought the problem out and now I don't need any more advice...at least on this issue ;) Thanks! beno
-- http://mail.python.org/mailman/listinfo/python-list