File Permissions ~ IDEs

File permission errors are corrected using a terminal or right-click menu
File permission errors are corrected using a terminal or right-click menu.

If, when viewing a file in the browser, an error message appears that says the page cannot be viewed or it is only ‘writable’, then the file or its parent folder has a permission problem.

Solve the problem

Using CodeTasty

  1. File → New Terminal.
  2. Type: chmod 755 about/index.php
    Terminal chmod file permissions change
    Terminal chmod file permissions change
  3. If you want to set an entire folder at 755, so that all its contents get the same permission setting, right-click on the parent folder, which is ONID for OSU students. Choose New Terminal from the popup menu. Type: chmod 755 -R about. Replace the ‘about’ folder name with any other folder name that needs Recursive permissions.

Using CodeAnywhere, ShiftEdit, FileZilla, WinSCP, or Dreamweaver

  1. Right-click on the folder or file on the remote server.
  2. Choose Properties or Permissions, depending on the software.
  3. Change permissions to 755, which looks like this:
    File permissions set at 755
    When set to 755, the owner is the only one who can write to that file. Groups and the Public can read and execute it, which is important for the markup, styles, and functions to behave properly.

Some File Transfer software might require you set the file permissions for an entire folder before you begin adding files to it. For new files and folders, update the preferences so that new ones are automatically set to 755: File→Preferences→search FTP. Click on FTP and update the permissions. Click Submit.

Resources