Changing File Permissions in cPanel

In this tutorial, we will show you how to change file permissions in cPanel. Each file and directory (folder) in your account has permissions that 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.

We also have a helpful guide on how to change file permissions via SSH.

Don’t have time to read the article? Watch our walk-through video.

Where to Work with File Permissions

It’s easy to work with file permissions in cPanel. After you log into cPanel, just click on the File Manager icon in the Files section.

Choose File Manager

You’re now in cPanel’s File Manager!

Viewing File Permissions

Once you’re in File Manager, you should see the Permissions for each file listed along the right-hand side of the screen.

View permissions

Keep in mind that certain file types and folders should be set to particular permissions. Below are a few 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 mean that your file is readable, writable, and executable by anyone who can access it. On a file live and online, that means nearly anyone in the world with web access!

777 permissions are not common. It is a rare situation where a file needs to be written and executed by anyone in the world. If you find files or folders with permissions that do not match the default permissions, it’s usually best to change them to cPanel’s recommended permissions.

How to Change File Permissions

  1. In the File Manager select the file you want to change the permissions for, then either click the Permissions link on the top(The Permissions button in cPanel's file manager.) or right-click and select Change Permissions from the dropdown list.
  2. 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).
  3. 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.

Keep in mind that you should only change file permissions if needed. You want to make sure that you aren’t allowing more access to your files than is necessary since that can leave your website vulnerable. If you have any questions or need additional assistance changing file permissions, please contact our Support Team and we’ll be happy to help you.

Go Unlimited with Exceptional Shared Hosting

Upgrade your Shared Hosting today and take your business to the next level! Get unlimited NVMe SSD storage, cPanel, professional email and over $400 in savings.

check markFree Domain check mark24/7 Human Support check mark100% Money-Back Guarantee

Shared Hosting

InMotion Hosting Contributor
InMotion Hosting Contributor Content Writer

InMotion Hosting contributors are highly knowledgeable individuals who create relevant content on new trends and troubleshooting techniques to help you achieve your online goals!

More Articles by InMotion Hosting

One thought on “Changing File Permissions in cPanel

Was this article helpful? Join the conversation!