Web Hosting Plus Logo



Web Hosting How-To Articles, Help and Information at Web Hosting Plus

What permissions do I need to set CGI scripts to?

Back to Help Main Page

Files and directories within your cgi-bin directory (or CGI scripts elsewhere) should be set to 755, that is:

rwx r-x r-x (chmod 755)

Since the Perl script that will open and write to the file is executed under the owner's userid, and the file is also owned by the same user, then the file only needs to be writable by the owner, not the world. This protects the security of our servers and your website and database(s).

Some Perl scripts which may require you to set a directory to rwxrwxrwx (chmod 777). This is not necessary as 777 is disallowed on our servers - 755 should always be sufficient even if 777 is recommended.


This is in reply to:

What permissions do I need to set CGI scripts to?


Web Hosting Plus Help Main Page