[FTP3.05] How do I set permissions on files and scripts?

Doing a CHMOD (changing a file's permissions) is the setting of access privileges for a file. This tutorial shows the process in one of the most common FTP applications called WS_FTP but the process is very similar with other ftp clients.

First connect to your hosting via FTP using the settings provided in your setup email.

Next click on the directory you have placed the cgi script in and right-click on the file you would like to set permissions for. The right-click menu is then displayed, and by clicking the "CHMOD" option we get to the main part of doing a CHMOD.

The new menu that appears has three columns - Owner, Group, and Other. Each column has three checkboxes below them - Read, Write, and Execute. eg for cgi scripts needing 755 permission - In the "Owner" column, check all three boxes. In the "Group" column check the first and third checkboxes. In the "Other" column, check the first and third boxes.

Finally, click "OK" to complete the CHMOD. Test your script or file again by calling it from your web browser. Everything should work correctly, but if you are still seeing an Error 500 Server Error then it is not because of your permissions.


Was this answer helpful?

 Print this Article

Also Read

[FTP3.05] How do I disable upload FTP upload (only) for a site?

Before you do this, you should make absolutely sure that this is what you want to do. If you...

[FTP2.10] I can login to FTP via my client, but I can't see a directory listing of my site files?

If your FTP client appears to log in correctly but no files or directories are listed, it's...

[FTP2.01] I've uploaded my site on my hosting account but cannot see it?

As a first step, check the following points:- Is your domain on the correct name servers? To...

[FTP2.02] Why can't I upload large files with FTP?

FTP uploads are limited to 200MB per file. (NOTE that this is as of 06 Dec 2010. By the time you...

[FTP4.04] Can I use the File eXchange Protocol (FXP) for site-to-site transfers?

We do not allow the use of the File eXchange Protocol (FXP) in the interests of security because...