smaller reset larger         

Main Menu

All times are in GMT -7 (DST) :: The time is now 1:32 pm.

Sub Menu

Article Data
Article Ref
9912-YWOM-0643
Date Created
Mon, 10th Mar 2003
Date Modified
Wed, 23rd Mar 2011
 
(Lost?)

   Proper permissions for CGI scripts

Question 

What are the proper permissions for CGI scripts and their data files?

Answer 

Many CGI scripts will instruct you to modify the permissions on the script, its data files, and your directories. This is because, with many web hosts, you must severely relax access permissions on your files for CGI scripts to operate with them, due to the security scheme in place. (All user scripts run with the web server's "permissions" on the system.)
This is NOT necessary with QWK.Net servers. (Scripts run with your permissions, rather than the web server's.) In fact, changing some permissions on CGI scripts may cause the system to refuse to run them. Specifically, you must not change your CGI scripts to be writable by "group" or "other", or they will be rejected.

CGI scripts themselves must still be marked as executable to run, but you should not change any other permissions of the script, or your cgi-bin directory. If your software accepts a numeric permissions description, set your scripts to "755" permissions.
 

Related Articles 

Article Title Date Created Article Views
Internal Server Error Mon, 10th Mar 2003 220123

Article Comments 

There are currently no comments.