I'm trying to use a Python CGI script to write a text file on a Unix/Apache webserver. The problem is that the file created is owned by 'nobody' and has permissions '-rw-r--r--'. I need to read and append to the file in other scripts, so I need some way of changing the file permissions. I tried os.chmod() and that didn't work. Thanks.