I'm configuring an apache web server working on a fedora fc5 machine..
the site is supposed to send info from a form to a cgi script and that cgi calls a
python module..This module need to be able to create txt or xml files and write into them and read from them
the html files are in /var/www/html
the cgi files and python files are in /var/www/cgi-bin/
the httpd.conf file is configured to run as
user swuser
group swuser
i hav changed permissions for the whole directory starting from /var to swuser and root with no luck
All files under var are on { chmod 777 } ...
the html,cgi files run fine and in the browser i get the error report as follows

IOError: [Errno 13] Permission denied: 'abcde.txt'
args = (13, 'Permission denied')
errno = 13
filename = 'abcde.txt'
strerror = 'Permission denied'

this error comes as a result of the following command in python

anybody hav any solutions?