2001web
Please Login or Register

Knowledgebase

What permissions do I need to set CGI scripts to?

Files and directories within your cgi-bin directory 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).

Finally, there are some freeware or perhaps even commercial Perl scripts which may require you to set a directory to rwxrwxrwx (chmod 777). Again, this is not necessary. Setting the directory permissions to 755 should always be sufficient.


Was this answer helpful?

Add to Favourites Add to Favourites

Print this Article Print this Article

Also Read
What is Python? (Views: 571)
What is XML? (Views: 533)

Powered by WHMCompleteSolution

Language:

Quick Navigation

Client Login

Email

Password

Remember Me

Search