Re: mod_python Unable to create file
On Mar 1, 11:24 pm, Marc 'BlackJack' Rintsch [EMAIL PROTECTED] wrote: On Sat, 01 Mar 2008 22:47:02 -0800, kaush wrote: I am using Apache and mod_python to service POST/GET requests on MAC OS. My script tries to create a file file = open(file_path, 'w') This fails with the following error EACCES Permission denied What is missing? To state the ovious: the rights to create a file at `file_path`. Remember that web servers usually have their own user. Ciao, Marc 'BlackJack' Rintsch Thanks Marc. In Apache what are the ways/directives to set the rights to a folder? -- http://mail.python.org/mailman/listinfo/python-list
Re: mod_python Unable to create file
On Mar 2, 2008, at 3:24 AM, kaush wrote: On Mar 1, 11:24 pm, Marc 'BlackJack' Rintsch [EMAIL PROTECTED] wrote: On Sat, 01 Mar 2008 22:47:02 -0800, kaush wrote: I am using Apache and mod_python to service POST/GET requests on MAC OS. My script tries to create a file file = open(file_path, 'w') This fails with the following error EACCES Permission denied What is missing? To state the ovious: the rights to create a file at `file_path`. Remember that web servers usually have their own user. Ciao, Marc 'BlackJack' Rintsch Thanks Marc. In Apache what are the ways/directives to set the rights to a folder? none. you set permissions via the operating system. chmod would be the command from terminal you are looking for. or you can do get info on the folder in question via the finder and set perms there. -- http://mail.python.org/mailman/listinfo/python-list
Re: mod_python Unable to create file
Hey thanks a lot Sean.Setting the permissions on the directory path solved the problem. On Sun, Mar 2, 2008 at 11:09 AM, Sean Allen [EMAIL PROTECTED] wrote: On Mar 2, 2008, at 3:24 AM, kaush wrote: On Mar 1, 11:24 pm, Marc 'BlackJack' Rintsch [EMAIL PROTECTED] wrote: On Sat, 01 Mar 2008 22:47:02 -0800, kaush wrote: I am using Apache and mod_python to service POST/GET requests on MAC OS. My script tries to create a file file = open(file_path, 'w') This fails with the following error EACCES Permission denied What is missing? To state the ovious: the rights to create a file at `file_path`. Remember that web servers usually have their own user. Ciao, Marc 'BlackJack' Rintsch Thanks Marc. In Apache what are the ways/directives to set the rights to a folder? none. you set permissions via the operating system. chmod would be the command from terminal you are looking for. or you can do get info on the folder in question via the finder and set perms there. -- http://mail.python.org/mailman/listinfo/python-list
Re: mod_python Unable to create file
On Sat, 01 Mar 2008 22:47:02 -0800, kaush wrote: I am using Apache and mod_python to service POST/GET requests on MAC OS. My script tries to create a file file = open(file_path, 'w') This fails with the following error EACCES Permission denied What is missing? To state the ovious: the rights to create a file at `file_path`. Remember that web servers usually have their own user. Ciao, Marc 'BlackJack' Rintsch -- http://mail.python.org/mailman/listinfo/python-list