Every file and folder of your website has a permission: a number that says who may read it, change it and run it. Use this guide when your site answers "403 Forbidden" for a page or a picture, or when an installer asks for a "writable" folder. Where this guide says "send a ticket": click the Loop logo at the top of the page to return to the home screen, click Help, then Submit a Ticket.
example.com.The column PERMISSIONS shows four digits, such as 0644. Ignore the 0 in front. The other three stand, in order, for the item's owner, for the owner's group and for everyone else. Each says what they may do:
| Digit | Allows |
|---|---|
| 7 | read, change and run |
| 6 | read and change |
| 5 | read and run |
| 4 | read only |
| 0 | nothing |
For a folder, "run" means "enter it". Two values are enough for a website: 644 for a file, so that everyone may read it, and 755 for a folder, so that everyone may enter it. The list does not show who owns an item, so you cannot tell which digit counts for your visitors. Test all three:
example.com/images/storefront.png is the file storefront.png in the folder images. An address that ends with the domain or a folder means the first page there, index.html or index.php..htaccess in any folder you went through must pass too. A file that fails can open as an empty editor: click Close then, never Save, which would empty the real file.Other numbers, such as 775 for folders and 674 for files, pass the test: leave them as they are.
One control in the next window can take part of your site offline: the tick box Apply recursively to all files and subdirectories. On a folder it gives the same number to the folder and to every file and folder inside it, and the old numbers are kept nowhere. With 644 none of those folders can be entered and visitors lose that part of the site; with 755 your site's own programs can lose the right to save into them. The box opens empty: leave it so.
644 for a file, 755 for a folder.rw-, r--, r-- for 644, or rwx, r-x, r-x for 755. If they read anything else, correct the field.Reload the page or picture that was refused. If it is still refused, go back to the test of Step 2.
Saving a file in the file manager's editor sets that file to 644, whatever it was.
The window does not warn about a dangerous number. Avoid these two:
000 lets nobody read the item: neither your visitors nor the file manager.777 lets every other program on the server change the item, and with the tick box everything inside a folder at once.Leave an item that already shows 777 as it is: your site may depend on saving there.
A "writable" folder is one your website's own programs can save files in. Whether they can depends on the number and on who owns the folder; the file manager cannot change the owner. A folder made with New Folder gets 755 and does not belong to those programs: only a number that lets everybody write, such as 777, would let them save into it. Do not set it: send a ticket with the folder's name and what the installer asks for.
In a ticket, give the domain, the file or folder and the folders it is in, the number it shows and the exact words of any message. Open and Follow a Support Ticket shows how to send and follow one; Describe a Problem So We Can Fix It Fast lists what else helps.