Without correct permissions for files created by CGI scripts, a script will fail. So, how to set permissions automatically (on the fly) when generating CGI files with new or unique names?
By the way, the cgi code is compiled/binary, so no mod_perl, etc.
I believe the files that are created have owner of apache:apache with 755 perms, I think.
One thing you might be able to do, set the perms on the parent directory to rwxrws--x
Files and subdirs below the parent will inherit the parent's perms. Then you can put apache into the same group that the parent directory is a member of. So now group members can write - it doesn't have to be the owner to write to the file.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.