STS Host and Tech Knowledge base
Search
Close this search box.

How To Change File Permissions Within cPanel

This article explains how to change file permissions in cPanel. File permissions enable operating systems to understand how requests to access files should be handled.

Types Of File Permissions

There are three levels of file permission:

  • The Read permission: allows you to read a file.
  • The Write permission: enables you to modify a file.
  • The Execute permission: allows you to execute a file.

Requests to read, write or execute can come from the user as well as other programs and files which need to access the file. This latter group includes requests sent over the internet that allow users to access a website.

File Permission Usage

A web server, for example, needs to read a website’s pages so that it can display them in a user’s browser. For your website to work correctly, therefore, the following permissions will need to be set.

  • Your website’s HTML files and images need to be writeable by the user and readable by others. These permissions are set automatically when the file is uploaded or installed.
  • Your folders need to be executable by others. The default permissions which allow this are also automatically set. These use the value 755 which means the files are readable and executable by User, Group and World, but only writable by the User (owner).
  • One set of files for which permissions are not set automatically is the CGI files (i.e. those files in the cgi-bin folder). These, too, need to be executable by others and require the same 755 value settings as in the bullet point above. However, as permissions are not set automatically, you may need to change them manually after the files have been uploaded.

Changing file permissions in cPanel

To change file permissions in cPanel, follow these steps:

  • Log in to cPanel.
  • Locate Files section and click on the File Manager.
File Manager
  • In File Manager, locate the folder or file whose permission you wish to change.
  • After that, select the file or folder you want to change by clicking its name. Once it is highlighted in blue, click the Permissions button (with the key icon) in File Manager’s top menu.
  • A dialog box will then open where you can see the existing permissions for that file or folder.
File Permissions
  • The three categories, User, Group and World, are displayed across the top and their Read, Write and Execute permissions are in the columns underneath. A highlighted checkbox indicates that permission has been granted.
  • To change permissions, check or uncheck the required boxes. When you do this, the permission value numbers at the bottom will automatically update.
  • Once you have made your changes, click on the Change Permissions button to save the new permission settings.

For more information on how to use cPanel, visit our cPanel section.

Share Article

Related Articles