Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

cgi permissions

Status
Not open for further replies.

codemut

Programmer
Feb 29, 2008
26
US
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.
 
Also, this CGI is in a Linux / Apache system.
 
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.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top