Short answer: On most Linux hosting, files should be 644, folders 755, and sensitive configuration files such as wp-config.php 600 or 640. Never use 777, which lets anyone on the server change the file.
Reading permission numbers
Each digit covers owner, group and everyone else. The digit is a sum: 4 = read, 2 = write, 1 = execute.
| Number | Meaning | Use for |
|---|---|---|
| 644 | Owner reads and writes; others read | Normal files |
| 755 | Owner full; others read and enter | Folders |
| 600 | Only the owner reads and writes | Secret config files |
| 777 | Everyone can do everything | Never |
Changing permissions
- cPanel File Manager: right-click a file and choose Change Permissions.
- SSH: use chmod, for example
chmod 644 index.php. See how to use SSH.
Common mistakes
- Setting 777 to "fix" an upload error. Fix ownership instead, or ask your host.
- Leaving backup files with database passwords in public folders.
Frequently asked questions
Why can't my site upload images?
The uploads folder may have the wrong permissions or ownership. 755 for folders usually works on cPanel.
Do permissions affect speed?
No, but they matter a lot for security. See website security basics.



