HostMonster Web Hosting Help

Setting file and user permissions


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 161,754 views bookmark tags: file permission permissions rights (updated 1221 days ago)

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? (updated 11 days ago)
Knowledgebase Article 176,752 views tags: cgi permissions

How do I grant permissions to cPanel for my MySQL database administrator without giving them the domain password? (updated 2235 days ago)
Knowledgebase Article 88,844 views tags: access mysql password permission

Learn how to see how many files you have on your account using the File Count tool in the cPanel. (updated 775 days ago)
Video "How-to" Tutorial 109,463 views tags: cpanel file

Related Help Content

I would like to use FileZilla how do I go about the setting it up and connecting to my site? (updated 21 days ago)
Knowledgebase Article 366,700 views tags: client configure file filezilla ftp party set settings setup zilla

I am prompted to set a new MySQL password. What does this mean and how do I change it? (updated 1181 days ago)
Knowledgebase Article 71,552 views tags: connect database mysql password phpmyadmin username

Instructions on how to set up Webmail to redirect as a custom subdomain (updated 1027 days ago)
Knowledgebase Article 60,250 views tags: cpanel webmail

This tutorial will show you how to renew your Hosting Account, from within the cPanel (updated 1761 days ago)
Video "How-to" Tutorial 122,983 views tags: billing cpanel hosting

This article will give a basic overview of the File Manager and explain how to access it. (updated 1028 days ago)
Getting Started Article 212,719 views tags: cpanel filemanager

How do I setup Dreamweaver 8 for FTP? (updated 1249 days ago)
Knowledgebase Article 91,004 views tags: client configure dream file information party program protocol set setup steps transfer

Emails are not sending out in the correct character sets. Recipients are receiving odd characters instead of the specified set. (updated 1399 days ago)
Knowledgebase Article 56,147 views tags: character email mail php set

This article will walk you through extracting compressed files using the File Manager. (updated 1014 days ago)
Knowledgebase Article 54,478 views tags: cpanel filemanager