FTP or File Transfer Protocol servers allow you to share or host data on your computer that might be too large to transfer through an email.
Here I am discussing how to install an FTP server in your home/office network so that you can easily share files from the server to the other computers.
vsftpd – Very Secure FTP daemon is the default FTP server in the Ubuntu, CentOS, Fedora, NimbleX, Slackware and RHEL Linux distributions.
- Open terminal and type this command to install vsftpd.
sudo apt-get install vsftpd -y
- Now we want to configure the installed vsftpd. Edit /etc/vsftpd.conf file
sudo gedit /etc/vsftpd.conf
- Find and change the following lines as shown below.
[...] ##Disable anonymous user login. anonymous_enable=NO ##Uncomment these two lines. ascii_upload_enable=YES ascii_download_enable=YES ##Uncomment and enter your Welcome message - Not necessary, It's optional. ftpd_banner=Welcome to Joo Nice FTP service. ##Add this line the end. use_localtime=YES
Save and exit gedit.
- Now restart the vsftpd server.
sudo service vsftpd restart
Now you can access the ftp server from other computers of same LAN via an ftp clients like filezilla or gftp, or just access (read only) by using a web browser. You have to use the username and password of the server.