How to Check and Change File Permissions in cPanel File Manager
Every file and folder on your server has permissions that decide who can read, write or run it. Set them too tight and your site throws errors; set them too loose and you open a security hole. The good news is that the safe values are simple, and cPanel's File Manager lets you set them with a few clicks.
The safe defaults to remember
- Folders: 755 — the owner can do everything; others can read and enter.
- Files: 644 — the owner can edit; others can only read.
- Never 777 — it lets anyone write to the file, which is a common way sites get hacked.
Step 1: Open File Manager and show permissions
- Log in to cPanel and open File Manager.
- The Permissions column shows each item's current value (like 0644).
- Remember to show hidden files if you need to reach things like
.htaccess.
Step 2: Change a permission
- Right-click the file or folder and choose Change Permissions (or select it and click Permissions in the toolbar).
- Tick the read/write/execute boxes, or type the number directly.
- Click Change Permissions to save.
When permissions are the actual problem
Permission errors often surface as 500 Internal Server Errors or an inability to upload. If a WordPress site suddenly breaks after a file change, wrong permissions are a prime suspect — set folders back to 755 and files to 644. Prefer the command line? See setting permissions with chmod and chown.
Frequently asked questions
A tutorial told me to use 777 — should I?
Avoid it. 777 lets anyone write to the file and is a genuine security risk. Almost anything that "needs" 777 actually works fine at 755 for folders and 644 for files. If something only works at 777, it points to an ownership problem worth investigating instead.
What is the difference between permissions and ownership?
Permissions say what can be done; ownership says who the owner is. On shared hosting your files are already owned by your account, so you mostly adjust permissions. Ownership matters more on a VPS.
Can I change permissions on many files at once?
Select multiple items in File Manager and apply the change together, or use the recursive option carefully. Just be sure you are applying folder values to folders and file values to files, not the same number to both.
Was this article helpful?