<div class="gmail_quote">On Wed, Jan 6, 2010 at 1:41 AM, Carsten Haese <span dir="ltr"><<a href="mailto:carsten.haese@gmail.com">carsten.haese@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="im">Victor Subervi wrote:<br>
> Hi;<br>
> I have a script that is called via the web. This script writes another<br>
> script that is also called by the web, which in turn needs to have<br>
> execution privileges. The problem is that the programmatically created<br>
> file is owned by apache.apache and thus doesn't have execution<br>
> privileges. I've tried os.chown(...) but this throws an OSError. I<br>
> understand that chown'ing programmatically opens a big security hole.<br>
> However, setting the gid to give apache execution privileges isn't any<br>
> better. What do you suggest?<br>
<br>
</div>I suggest you find a way to achieve whatever it is you are trying to<br>
achieve without having to execute programmatically created scripts. What<br>
is the underlying problem you're trying to solve with this approach?<br></blockquote><br>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!<br>
beno<br></div>