InMotion Hosting Support Center

In this tutorial:

In this tutorial, we will show you how to change file permissions in cPanel. Each file and directory (folder) in your account has permissions which control who can read, write and execute that file. When files are created, default permissions are assigned. Most users won't need to change permissions, but there are times when an update, installation, etc. will require a file permissions change. File permissions can be viewed and changed through either the cPanel File Manager or most FTP programs.

Viewing File Permissions

  1. Log into cPanel.
  2. Click the File Manager link in the Files section.


    You will then see your files listed with the permissions for each file to the right side of the screen. Keep in mind that certain file types and folders should be set to particular permissons. Below are typical permission settings:

    public_html - 750
    Folders - 755
    CGI and Perl scripts - 755
    .html .php and other Document Types - 644

Incorrect File Permissions?

Incorrect file permissions can cause errors or even worse, allow unauthorized users to hack your site. Once an unauthorized user gains access, they can further alter more of your file permissions to make a site even more vulnerable. Remember that 777 permissions means that your file is readable, writeable and executable by the "world". This is not common, as it is a rare situation where a file needs to be written and executed by the "world." If you find files or folders with permissions that do not match the default permissons, it's usually best to change them to the above recommended permissions.

How to Change File Permissions

  1. Log into cPanel.
  2. Click the File Manager link in the Files section.
  3. In the File Manager select the file you want to change the permissions for, then click the Permissions link on the top.

    You can also right-click and select Change Permissions from the list.

  4. This will bring up the Change Permissions window. Adjust the settings as needed by checking the box by each permission you want for each level of access (User, Group and World).

  5. Once you are finished editing your file permissions click the Change Permissions button.

Congratulations, now you know how to change your file permissions in cPanel!

Was this article helpful?

Related Questions

Here are a few questions related to this article that our customers have asked:
Ooops! It looks like there are no questions about this page.
Would you like to ask a question about this page? If so, click the button below!
Ask a Question

Support Center Login

Our Login page has moved, Click the button below to be taken to the login page.

Post a Comment

Email Address:
Phone Number:

Please note: Your name and comment will be displayed, but we will not show your email address.

0 Questions & Comments

Post a comment

Back to first comment | top

Need more Help?


Ask the Community!

Get help with your questions from our community of like-minded hosting users and InMotion Hosting Staff.

Current Customers

Chat: Click to Chat Now E-mail:
Call: 888-321-HOST (4678) Ticket: Submit a Support Ticket

Not a Customer?

Get web hosting from a company that is here to help. Sign up today!