Python CGI & File Permissions

Brian Waskiewicz bwaskiew at indiana.edu
Tue Dec 18 19:09:35 CET 2001


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.



More information about the Python-list mailing list