On 6/21/07, Anthony Raj <[EMAIL PROTECTED]> wrote: > Hi Folks, > > Having a very strange problem in using python with apache/mod_python. > > [conf.py attached] > > >>> from ast.conf import conf > >>> c = conf() > >>> a = c.readPath('sandbox') > >>> len (a) > > >>> 30 > > The same code when run thru the a web script gives following error - > > [Errno 13] Permission denied: '/home/ast/ast-linux.conf' [snip] > The permission for the ast-linux.conf file is the same as the user/group > defined in httpd.conf. > > [EMAIL PROTECTED] ast-sandbox]# ls -l /home/ast/ast-linux.conf > -rw-rw-rw- 1 777 ast 7936 Jun 21 11:11 /home/ast/ast-linux.conf
What are the permissions on /home/ast? Also, you seem to have done "chown 777 ast-linux.conf" at some point, which sets the owning UID of the file to 777, which doesn't exist as a user on your system. Because the file permissions are read/write for everybody it shouldn't matter, but it probably wasn't what you intended. -- David -- http://mail.python.org/mailman/listinfo/python-list