Quote:
Originally posted by Epsilon Couldn't you chown and chgrp the directory to the user and group your web server runs as (usually 'nobody')? I would think then it would work fine with permissions of 775. Then it's not world writable, but it's writable by the web server.
Or you could read/write files in a sub-directory under your script directory. That way you can make the script directory 755 and the files directory 666. There should be no reason why you have to have your script in the same directory you're writing files to. |
Valid point on the ownership; if the script and directory live under the DocumentRoot, it should already be owned by 'root' or 'httpd' or 'nobody'. That's something left to the web admin to figure out. That doesnt really matter though. As long as it's owned by a group that has permissions to write to the directory, 775 will work fine. It could be owned by the 'salinewebserverproject' group, as long as it has the right perms.
You should be able to have the script write to any directory you'd want, I would think, including '/tmp'. A directory with perms of '666' doesnt work, though. You can't enter the directory without Executable permissions, and again, that extra '2' is giving
world write perms.