Understanding and Changing File Permissions

File permissions control who can read, write to, or execute files on your hosting account. Incorrect permissions are one of the most common causes of website errors — a 403 Forbidden response, a PHP script that refuses to run, or a file that cannot be written by an application. Understanding the permission system lets you fix these issues quickly and keep your account secure.

Set correct chmod permissions for files and folders.

How Unix Permissions Work

Every file and directory has three permission sets:

SetApplies to
OwnerThe cPanel user who owns the file (you)
GroupThe group associated with the account
WorldEveryone else (other users, the web server)

Each set can have three permission types:

SymbolValueMeaning
r4Read
w2Write
x1Execute

Permissions are expressed as an octal number by adding the values together. For example, rwx = 4+2+1 = 7, r-x = 4+0+1 = 5, r-- = 4+0+0 = 4.

A permission of 755 means: owner can read/write/execute (7), group can read/execute (5), world can read/execute (5).

Recommended Permissions

ItemCorrect PermissionReason
Regular files644Owner can edit; web server can read
PHP/script files644Never make scripts world-executable
Directories755Owner full access; others can traverse
wp-config.php640 or 600Sensitive — restrict to owner only
Uploaded media644Web server must read; no write needed
.htaccess644Web server reads it; owner edits it

Never set files to 777. This grants write access to everyone on the server and is both a security risk and a violation of most hosting policies.

Changing Permissions in cPanel File Manager

  1. Log in to cPanel at clients.cyclebreezehost.com.
  2. Go to Files → File Manager.
  3. Click the Settings gear icon and check Show Hidden Files so .htaccess and other dot-files are visible.
  4. Navigate to the file or folder you want to change.
  5. Right-click the item and select Change Permissions, or select it and click Permissions in the toolbar.
  6. Check or uncheck the boxes in the Owner, Group, and World columns, or type the octal number directly into the field at the bottom.
  7. For directories, check Recurse into subdirectories if you want to apply the change to all contents — use this with care.
  8. Click Change Permissions to apply.

Changing Permissions via SSH

If you have SSH access, use the chmod command:

# Set a single file
chmod 644 index.php

# Set a directory
chmod 755 public_html/uploads

# Recursively set all files in a directory to 644
find /home/username/public_html -type f -exec chmod 644 {} \;

# Recursively set all directories to 755
find /home/username/public_html -type d -exec chmod 755 {} \;

Replace username with your actual cPanel username.

Diagnosing Permission Errors

  • 403 Forbidden on a directory: The directory is likely 700 or 711. Change it to 755.
  • 403 Forbidden on a file: The file may be 600 or not readable by the web server. Change it to 644.
  • PHP cannot write to a folder (e.g., uploads failing): The folder needs to be 755 or 775. Avoid 777.
  • WordPress permissions reset itself: A plugin or cron job may be changing them. Check plugin settings.

CloudLinux and CageFS Notes

CyclebreezeHost shared hosting runs under CloudLinux LVE, which adds an additional security layer. Each account runs as its own user inside CageFS, so files set to 777 are less of a cross-account risk than on traditional shared hosting — but they still expose your own account to unnecessary write access and should be avoided.

For further help diagnosing a permissions issue, contact CyclebreezeHost support at info@cyclebreezehost.com. The team is available 24/7.