Besides of using Windows Dos Prompt to ftp the files into the server, there is another method to ftp the files in an easier way. FileZilla is open source software that is suitable for users that does not familiar with the ftp commands and prefer GUI (Graphical User Interface) to have a better view for the ftp process.After the installation of the software, you have to specify the host (ip address), username and password. The left window shows all the files exist in your pc according to the location that you had chosen. The right window shows the files that exist in the server that you want to ftp. As for the upper window, it shows the status of the ftp process as well as the response for the commands for the request made by the user. You can refer to this url to understand about my description of the program:
http://filezilla-project.org/images/screenshots/fz3_win_main.png
If you encounter failure in transferring the file to the server, it might be caused by the permission issue. If the upper window shows that the failure caused by “permission denied”, it means that you don’t have the permission to overwrite the file in the server (if the file is already exist in the server and you want to overwrite it with a new file). There are two solutions for the problems.
Change the Permission Mode in Linux
If you want to transfer the file to the Linux system, you have to access as a root user and change the permission mode for the file in Linux. Based from the example as shown below, the file (rc.local) only can be modified by the user root. If you are using other users to ftp the file in Filezilla, you will face the problem of permission denied.
e.g
-rw-r–r– 1 root users 378 2008-03-17 14:11 rc.local
In order to solve the problem, you need to type the following command in Linux to change the permission mode for the file:
chmod 777 rc.local
Change the Permission Mode in FileZilla
- To enable the transferred file is executable, right-click the specific file that you need to overwrite on the right window.
- Choose File Attributes.
- You can either ticking the options (read, write, executable) to specify the permission mode of the file.
- If you want to change the permission for all users, you can type ‘777’ in the given box to tick all the options.