Prev: joining two column
Next: Alternate string object type for PyStringObject(available Python 2.x) in python 3.x?
From: Aaron Scott on 14 May 2010 15:27 I have a Python script running on the default OSX webserver, stored in /Library/WebServer/CGI-Executables. That script spits out a list of files on a network drive, a la "os.listdir('/Volumes/code/ directory/')". If I just execute this from the terminal, it works as expected, but when I try to access it through a browser (computer.local/cgi-bin/test.py), I get a permissions error (<type 'exceptions.OSError'>: [Errno 13] Permission denied: '/Volumes/code/ directory'). Is there any way to give the script permission to access the network when accessed via CGI? |