FAQ
- I can't access my files (Access Forbidden! Error 403).
- What are file permissions? Why do we need them?
- How can I check and set the file access permissions?
- I setup everything following the instructions but I still cannot connect to the server.
I can't access my files (Access Forbidden! Error 403).
If you see an error as below, it is very likely that you uploaded your files to the server using port 21 instead of 3501 for NetID accounts and 3500 for NonNetID accounts. Please follow the FTP Instructions to set up the FTP connection and after that refer to this link to upload them correctly.
What are file permissions? Why do we need them?
File permissions are necessary to protect and to instruct the server about how to handle certain files. They can be set using raw FTP commands, but the easiest way to set them is using an inbuilt tool from your FTP client. This is where some FTP clients do not support the changing of permissions on files. One good example is the built-in FTP client in Dreamweaver, which will only allow you to set permissions using a specific raw FTP command. If you have multiple files and folders to set permissions on, typing the FTP command multiple times would become tedious.
It is a good idea to become at least a little familiar with what permissions are used for what purpose. The reason for this is that most scripts will actually need certain permissions to run. If they are simply uploaded as normal by say, Dreamweaver, they will inherit 'normal' permissions by default, but it may not be suitable in order to actually 'run' or 'execute' the commands that are inside the script. Most default permissions will only allow you to read a file, which will unfortunately not be enough to run a script.
The most common permission required to run a script is CHMOD 755 (-rwx r-x r-x)
What's CHMOD?CHMOD stands for Change Mode and simply means that you are changing your permissions on the file or folder. "CHMOD" is also a UNIX command that is used in code and through the command line to change permissions on files and folders.
Types of permissions for different user groups
- There are three types of permissions to set on folders and files on UNIX servers – Read, Write and Execute permissions. There are three distinct groups that are affected with these permissions to allow you to control who has access to the file or folder.
These groups are as follows:
The owner of the file - usually whoever uploaded it, or whomever created it.
The group – usually other registered hosting users on the actual server or common resources that are setup to run under this permission group.
The public – this is the public or Internet user.
So each group has three settings or switches, to allow you to control their access based on whether you want them to read, write or execute the resource that you are setting permissions on. - all the folders/directories should have:
- R W and E for owners, and
- R and E for the other groups,
- Each individual web file (image file, pdf file, html file, etc) should have
- R W and E for owners, and
- R for other groups.
For your website,
as shown below,
How can I check and set the file access permissions *?
If you used the wrong port 21, you cannot check/set the file access permission in Dreamweaver; you need to check/set that either in SSH or by using FileZilla or Fetch.
Note: If you upload your files with port 21, after changing the port to 3500 (NonNetID accounts) or 3501 (NetID accounts) and reuploading files, file permissions could still be wrong! Please pick one of the following three options to fix the problem:
1. Delete all your files on the server , change the port to correct one and reupload all your files again in FileZila or Fetch.
2. Use FileZilla (Windows users) and Fetch (Mac users), and set the permissions manually.
3. In case, you uploaded a lot of files and directories, use SSH, Linux commands.
FileZilla will allow you to change the file permissions or "attributes" as this program calls them, on files and folders. You can even choose multiple files and folders in the same window view to change multiple permissions at the same time.
Setting a file or folder permission in FileZilla is easy. You simply check the box to turn that setting on, like a switch. Select a file, then right click on it. A menu will appear and you will need to choose "File Attributes".
1. Select the file or directory, click on Remote from the main menu, then Get Info (or shortcut key as SHIFT+COMMAND+I):
2. You can see file information,
3. click on Ownership and Permission, check on the permissions to turn them on.
1. Download the free Putty Telnet/SSH Client.
2. Refer to CHANGE PASSWORD to find out how to download SSH client and start up in windows and mac.
3. Check this Linux command chmod
* Some part of this document is gathered from an article by Eddie Machaalani, for further information click here.
I set up everything following the instructions but I still cannot connect to the server.
If you follow the instructions correctly but you still cannot connect to the server, usually it might happen when you use the wireless network, or maybe because of some firewall problem.
University of
Connecticut



