Directory Permissions for CGI

This article applies to 123-reg Linux Shared Hosting packages.

Due to the secure way in which our server is configured, CGI scripts can only be run from a secure directory. This means that the directory they are run from must not have group or world write access permissions. These can be configured in your FTP client. In addition to this, the scripts themselves must not have group or world write access permissions. This will prevent any potential security holes arising from poorly configured permissions.

We recommend that for directories, you set the permissions to 0711 (user read-write-execute, group and world execute) or 0755 if you are allowing directory indexes (user read-write-execute, group and world read and execute). For CGI scripts themselves, we recommend permissions of 0755 (user read-write-execute, group and world read and execute).It is very important that these permissions are set correctly, or the CGI scripts will not execute.

Answer options

Your feedback was successfully added.

Answer tracking

Track

Watch the content of this article for changes.