Overview
FTP(File Transfer Protocol) is the most common protocol to access or transfer files to remote system to clients. The client need not to log into the remote but have permissions to upload or download files into or from server.
Its purpose is to transfer files between computer hosts in the network without requiring the user log into the remote system.
<< vsftpd FTP Server Installation >>
This is secure FTP Daemon designed as a very fast, stable and secure. It is a stand-alone FTP that distributed with RED HAT Enterprise Linux and it is able to handle large numbers of connections efficiently and securely.
Step1 : Open Terminal (Alt+Ctrl+T), Login as root and write Command to install FTP daemon
root@Uname:/home/Uname# apt-get install vsftpd
Step 2 : You need to start FTP service and to do that write command
root@Uname:/home/Uname# /etc/init.d/vsftpd start
Step 3 : Now Connect to the localhost of the system
root@Uname:/home/Uname# ftp localhost
Connected to localhost.
220 ProFTPD 1.3.4a Server (ProFTPD) [::ffff:127.0.0.1]
Name (localhost:Uname): Uname
331 Password required for Uname
Password: ***** <Uname Password>
230 User Uname logged in
Remote system type is UNIX.
Using binary mode to transfer files.
ftp>
Now you can run file using ftp protocol.
Step 3 : You can see all the files and directories of localhost are is located in ftp too.
ftp> ls
200 PORT command successful
150 Opening ASCII mode data connection for file list
drwxrwsrwx 8 Uname root 4096 Oct 25 14:45 DJS
drwxrwxrwx 8 root root 4096 Jul 22 14:42 MyApp
drwxrwxrwx 3 Uname Uname 4096 Sep 19 05:40 Online_task_mngt
drwxrwxrwx 3 Uname Uname 4096 Oct 29 10:34 Practice
drwxrwxrwx 9 Uname root 4096 Nov 16 08:28 bill
drwxrwxrwx 12 Uname root 4096 Nov 5 13:30 color_detect
226 Transfer complete
Step 4 : FTP Configuration for User Authentication and allow authenticate users to upload files,
edit /etc/vsftpd.conf :
local_enable=YES
write_enable=YES
Now restart the vsftpd :
root@Uname:/home/Uname# /etc/init.d/vsftpd restart
Now when system users login to FTP they will start in their home directories where they can download, upload, create directories, etc.