How to change file and folder permissions (chmod)
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
- Log in to the control panel (
https://<server>:2083). - Open File Manager (section Files) and go to the folder.
- 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.
- Enter three digits, for example
644for files or755for folders. - 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).
| Value | Typical use |
|---|---|
644 | Normal files: you can change them, everyone can read them |
755 | Folders and scripts that must run (for example CGI scripts) |
600 or 640 | Private files such as wp-config.php |
444 | Read-only files you want to protect from changes |
Good to know
- Your PHP runs as your own account, so private settings files work with
600or640and 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 folders755. - 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.
Thank you — this helps us improve the article.
Still stuck?
Ask the AI about your exact situation — it answers from this knowledge base — or contact us.
Related articles
- How to upload files to your website with the File Manager
Upload website files from your browser with the File Manager, replace existing files, and know where your site's files go (public_html).
- How to edit a file online in the File Manager
Open a text file such as .htaccess, wp-config.php or index.html in the File Manager's editor, change it and save it, with the limits that apply.
- How to use the terminal in your browser (SSH without a client)
Open a command line for your hosting account in the browser with Terminal, what you can run there, and the time and session limits that apply.