Skip to content
Free website migration on every plan, done by our team.Learn more ›
Security

File permissions on Linux hosting: 644, 755 and 600 explained

What Linux file permission numbers mean, the safe defaults for websites (644 files, 755 folders), protecting config files, and why 777 is dangerous.

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.

NumberMeaningUse for
644Owner reads and writes; others readNormal files
755Owner full; others read and enterFolders
600Only the owner reads and writesSecret config files
777Everyone can do everythingNever

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.

Ready when you are

Host it where it performs

NVMe speed, offshore privacy and a written SLA — live in minutes on AuroxHost.