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

I am unable to connect with FTP

Your FTP account may be locked, for more information, consult the article on FTP locking. All...

My extra FTP account doesn't seem to work with PHP scripts.

In theory, this should work without issues as all FTP users on a hosting account have the UID,...

I'm trying to upload a large file onto my webspace, and the file manager inside the Online Control Panel Control Panel won't let me. Why?

This is due to the nature of the web based FTP used, and your browser/ISP connection timing out...

I can't see the images on my website. Why?

There are several possible reasons why your images are not showing up on your pages as expected:...

The images on my website have been corrupted, what went wrong?

This can occur if you are uploading your images using FTP, using the Binary setting rather than...