How to change file and directory permissions in cPanel securely

This article explains how to change permissions of files and folders in cPanel securely, using the File Manager.

What are permissions? They define who can read, write, and execute a file or folder. In Linux hosting they are expressed with numbers (e.g. 644, 755).

Recommended values (usual use)

Element Suggested permission Reason
Web files (.html, .php, .css, .js, images) 644 Public read; write owner only.
Folders (public_html, subfolders) 755 Allows listing and accessing content.
Specific executable scripts (e.g. CGI) 755 Only when the script must execute.

Avoid 777 permissions: they grant read/write/execute to everyone and are a security risk. Use them only if support explicitly tells you to.

Change permissions from the File Manager

  1. Log in to cPanel → Files → File Manager.
  2. Browse to the file or folder.
  3. Click on the numerical value in the Permissions column.

Columna de permisos en Administrador de archivos

  1. Modify the checkboxes (Owner / Group / World) or the number directly.
  2. Save the changes.

Alternative: right-click

Select the file or folder → right-click → Change Permissions (Cambiar permisos).

When to change permissions

  • The site shows 403 Forbidden on folders → check folder permissions (755).
  • Error writing files (WordPress, CMS) → sometimes requires specific adjustment in wp-content; do not change the whole hosting to 777.
  • After uploading files via FTP → if they remained at 600 or 640, correct to 644 / 755.

What not to modify

  • Do not change permissions in system folders: mail, etc, tmp.
  • Do not apply massive changes across the entire account without knowing what you are correcting.
  • Do not use 777 as a general solution.

Frequently asked issues

  • 500 error after changing permissions: restore 644 on files and 755 on folders inside public_html.
  • 403 on a folder: the folder may have 700; try 755.
  • WordPress asks for special permissions: adjust only the folders that require it (wp-content/uploads, etc.).

If the site became inaccessible after changing permissions, open a ticket from the client portal or consult through the site's online chat.

  • cambiar permisos de directorio cpanel
  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

How to connect and upload files using FTP-FileZilla

This article explains how to upload files via FTP to your hosting plan using the free FileZilla...

I cannot publish files within my service

This article helps you troubleshoot when you cannot upload or publish files on hosting with a...

Anonymous FTP Precautions

This article describes the security and usage precautions of anonymous FTP in a cPanel hosting...

FTP folder utilities

This article explains the meaning of each folder in your hosting account when connecting via FTP...

Creating and managing FTP accounts

This article explains how to create and manage additional FTP accounts in cPanel to grant...