How to change file and folder permissions (chmod)

For hosting customers · Updated 2026-10-29

On this page
  1. Steps
  2. What the numbers mean
  3. Good to know
  4. Common questions

Permissions decide who may read, change or run a file. Most websites need 644 for files and 755 for folders. You change them in the File Manager with three digits, like the chmod command.

Steps

  1. Log in to the control panel (https://<server>:2083).
  2. Open File Manager (section Files) and go to the folder.
  3. To change one item, click its number in the Permissions column. To change several, tick them and click Permissions in the bar above the list.
  4. Enter three digits, for example 644 for files or 755 for folders.
  5. Confirm. You see Permissions changed.

What the numbers mean

The three digits are for the owner (your account), the group and everyone else. Each digit adds up read (4), write (2) and run/open (1).

ValueTypical use
644Normal files: you can change them, everyone can read them
755Folders and scripts that must run (for example CGI scripts)
600 or 640Private files such as wp-config.php
444Read-only files you want to protect from changes

Good to know

  • Your PHP runs as your own account, so private settings files work with 600 or 640 and do not need to be readable by everyone.
  • Never use 777. It lets anything on the server change the file and is not needed here.
  • Changing permissions of a folder does not change the files inside it. To change a whole tree at once, use SSH or the Terminal, for example:
    find ~/public_html -type d -exec chmod 755 {} + && find ~/public_html -type f -exec chmod 644 {} +
  • Files uploaded with the File Manager or FTP get 644, new folders 755.
  • Only three digits are accepted. Special bits (a fourth digit) cannot be set here.

Common questions

My site shows "403 Forbidden" after I changed permissions. What now?

The web server can no longer read the file or open the folder. Set files back to 644 and folders to 755.

Why do I get "Permissions must be three digits, e.g. 644 or 755"?

Enter exactly three digits from 0 to 7, without letters such as rwx.

Was this article helpful?

Still stuck?

Ask the AI about your exact situation — it answers from this knowledge base — or contact us.