Changing file permissions using a SFTP client

In this guide, you will learn how to change file permissions using a SFTP client, such as Cyberduck (Mac) or WinSCP (PC).

Changing File Permissions Using Cyberduck on a Mac
  1. Login to your web account using Cyberduck. For step-by-step instructions, see How to use Cyberduck to connect to Webserve.
  2. Once connected, move into the directory where your files reside. For example, if you want to change the file permissions of the index.html file in your www directory, [1] click on the triangle next to the www folder. This will open the www folder and display the files and subfolders within it.cyberduck chmod
  3. Once you have found the file or folder whose permissions you wish to change, right click (or, for one button mouse users, hold down the ctrl key and click) on the file or folder name. This will bring up a menu. Select Info.
  4. cd open files
  5. If the Permissions section is not displayed as in the image below, click on the triangle next to Permissions to view the permission settings. To change the permissions, [1] check the check boxes. To make a web page viewable on the web, the check boxes for Owner, Group and Others should all have Read and Execute selected. The Write check box should be checked only for the Owner and not for Group/Others.
  6. cd permissions
  7. Note: On Webserve, permissions for files with these extensions: .php, .php4, .pl, .cgi should be set so that the check boxes selected are Read, Write, and Execute only for Owner. Group/Others should have no check boxes selected. These files are special files that require different permissions than standard html/shtml web files.

  8. Click Apply. Now check to see whether the page is viewable on the web. You may need to click Refresh/Reload in your browser.
Changing File Permissions Using WinSCP on a PC
  1. Login to your web account using WinSCP. For step-by-step instructions on how to connect to Webserve using WinSCP, please see How to use WinSCP. 

  2. Move into the directory where your files reside by double clicking on the folder in the right pane. For example, if you want to change the file permissions of a file in your www directory, double-click the www folder to open it. 

  3. In the example below, we will change the file permissions for index.html located in the www folder. To change the permissions, follow these steps: [1]. Right click on the file name or folder whose permissions you wish to set. A pop-up menu window will open. [2] Select Properties.

    For a larger view, click on image below.

    right click on file and click properties

  4. The Properties window for the selected file will open (see image below). To change the permissions, you can either [1] check the Permissions check boxes or [2] edit the Octal text field. Both the check boxes and Octal text field are synchronized, and a change in one area will be reflected in the other.

    change the file permissions

    To make the file viewable on the web, in the Permissions section of the Properties window, for Owner check R (for read), W (for write), and X (for execute). For Group and Others check and X. Alternatively, we could type 0755 in the Octal text field.

    Note: On Webserve, permissions for files with these extensions: .php, .php4, .pl, .cgi should be set so that the only check boxes selected are R, W, X for Owner (Octal = 0700). These files are special files that require different permissions than standard html/shtml web files.

  5. Click OK. Now use your browser to verify that the page is viewable on the web. You may need to click on the Refresh/Reload button in the browser window.