This site utilizes JavaScript to function correctly. Looks like it's disabled on your browser. Please enable it for your best experience.

For instructions on enabling JavaScript, click here

Skip to main content

Just Host Web Hosting Help

Setting file and user permissions

Summary

This is a short tutorial, or refresher, on how to set file and user Permissions in cPanel.


Changing File Permissions

Linux is a multi-user environment. In a multi-user environment, security of user and system data is very important. Access should be given only to users who need to access the data.
From Cpanel open File Manager. Click on the file/folder name you wish to change permissions for.
Click "Change Permissions". Then select your permissions as appropriate for your needs.

r - Read permission. Whether the file may be read. In the case of a directory, this would mean the ability to list the contents of the directory.

w - Write permission. Whether the file may be written to or modified. For a directory, this defines whether you can make any changes to the contents of the directory. If write permission is not set then you will not be able to delete, rename or create a file.

x - Execute permission. Whether the file may be executed. In the case of a directory, this attribute decides whether you have permission to enter, run a search through that directory or execute some program from that directory.

You will generally want to restrict writable access to "group" and "world" permissions, and set them only for "user" access. Files you do not want changed (ie: read only) should have writable access turned of for all types of access.

If Setting to specific bit number values, they are:
r = 4
w = 2
x = 1

Knowledgebase Article 307,570 views bookmark tags: file permission permissions rights


Was this resource helpful?

Did this resolve your issue?


Please add any other comments or suggestions about this content:





Recommended Help Content

How do I change file permissions?
Knowledgebase Article 316,050 views tags: cgi permissions

How do I grant permissions to cPanel for my MySQL database administrator without giving them the domain password?
Knowledgebase Article 282,461 views tags: access grant mysql password permission

This article will walk you through uploading files using the File Manager
Knowledgebase Article 379,376 views tags: cpanel file upload

Related Help Content

I would like to use FileZilla how do I go about the setting it up and connecting to my site?
Knowledgebase Article 942,237 views tags: client configure file filezilla ftp party set settings setup zilla

The hosts file is a plain text file that allows you to set IP Addresses for a domain on your computer. This may override authoritative DNS.
Knowledgebase Article 113,364 views tags: admin development dns file hosts ip test

I am prompted to set a new MySQL password. What does this mean and how do I change it?
Knowledgebase Article 249,066 views tags: connect database mysql password phpmyadmin username

VPS and Dedicated customers with servers running the CentOS 6 operating system will not be able to upgrade cPanel past version 86. The cPanel team will still support CentOS 6 with cPanel 86 until March 31st, 2021.
Knowledgebase Article 114,727 views tags: centos cpanel dedicated hosting private server upgrade virtual vps

How to create a new cPanel.
Knowledgebase Article 245,973 views tags: account cpanel whm

This article will give a basic overview of the File Manager and explain how to access it.
Getting Started Article 474,173 views tags: cpanel filemanager

How do I setup Dreamweaver 8 for FTP?
Knowledgebase Article 256,386 views tags: client configure dream file information party program protocol set setup steps transfer

This article will walk you through extracting compressed files using the File Manager.
Knowledgebase Article 245,258 views tags: cpanel filemanager

** Google ad credits are only available to customers in the United States, Canada, and the United Kingdom at this time.

¹ VAT (Value Added Tax) is not included in our advertised price and will be charged separately and itemized on invoices and billing information. Standard VAT rates based on EU Member State regulations may apply. Learn more.