AMP AMP

How to Install and Configure FTP Server on Linux Mint 20

To Install and Configure FTP Server on Linux Mint 20

FTP stands for File Transfer Protocol. It is used to transfer files from one directory to another directory through the Internet which provides an individual user name and password to the users. The FTP server has the port numbers that is 20,21. This tutorial covers the installation process of FTP Server on LinuxMint 20.

Installation:

Let check the version of OS by using the following command

root@linuxhelp:~# cat /etc/os-release
NAME="Linux Mint"
VERSION="20 (Ulyana)"
ID=linuxmint
ID_LIKE=ubuntu
PRETTY_NAME="Linux Mint 20"
VERSION_ID="20"
HOME_URL="https://www.linuxmint.com/"
SUPPORT_URL="https://forums.ubuntu.com/"
BUG_REPORT_URL="http://linuxmint-troubleshooting-guide.readthedocs.io/en/latest/"
PRIVACY_POLICY_URL="https://www.linuxmint.com/"
VERSION_CODENAME=ulyana
UBUNTU_CODENAME=focal

Now, install the vsftpd service by using the following command

root@linuxhelp:~# apt-get install vsftpd -y
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following NEW packages will be installed:
  vsftpd
0 upgraded, 1 newly installed, 0 to remove and 363 not upgraded.
Need to get 115 kB of archives.
.
.
.
Created symlink /etc/systemd/system/multi-user.target.wants/vsftpd.service → /lib/systemd/system/vsftpd.service.
vsftpd.conf:1: Line references path below legacy directory /var/run/, updating /var/run/vsftpd/empty → /run/vsftpd/empty; please update the tmpfiles.d/ drop-in file accordingly.
Processing triggers for man-db (2.9.1-1) ...
Processing triggers for systemd (245.4-4ubuntu3) ...

Once the installation is completed, now check the IP by using the following command

root@linuxhelp:~# ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host 
       valid_lft forever preferred_lft forever
2: ens33: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000
    link/ether 00:0c:29:be:4b:b2 brd ff:ff:ff:ff:ff:ff
    inet 192.168.7.236/24 brd 192.168.7.255 scope global noprefixroute ens33
       valid_lft forever preferred_lft forever
    inet6 fe80::960a:2495:896e:6cd1/64 scope link noprefixroute 
       valid_lft forever preferred_lft forever

Now, add the user id by using the following command

root@linuxhelp:~# adduser test
Adding user `test' ...
Adding new group `test' (1001) ...
Adding new user `test' (1001) with group `test' ...
Creating home directory `/home/test' ...
Copying files from `/etc/skel' ...
New password: 
Retype new password: 
passwd: password updated successfully
Changing the user information for test
Enter the new value, or press ENTER for the default
	Full Name []: 
	Room Number []: 
	Work Phone []: 
	Home Phone []: 
	Other []: 
Is the information correct? [Y/n] y

After the user id is created, now create a directory in the home directory by using the following command

root@linuxhelp:~# cd /home/test/
root@linuxhelp:/home/test# mkdir demo
root@linuxhelp:/home/test# cd demo
root@linuxhelp:/home/test/demo# touch test.txt

Once the directories is created, now restart the FTP service by using the following command

root@linuxhelp:~# systemctl restart vsftpd

Open FTP on browser and enter the credential of the user The directories of the FTP server is shown here The text file of the demo directories is shown here

The installation process of FTP Server on LinuxMint 20 comes to an end.

Tag : FTP Linux Mint
FAQ
Q
What is the path of the FTP configuration file?
A
The path of the FTP configuration file is # /etc/vsftpd.conf
Q
What is the expansion of the FTP service?
A
The expansion of the FTP service is vsftpd that means Very Secure File Transfer Protocol
Q
What is the step to install the FTP service?
A
The installation command of FTP service is # apt-get install vsftpd -y
Q
What is the purpose of the FTP service?
A
The FTP server is used to transfer the data from one directory to another directory.
Q
What are the port numbers of the FTP server?
A
The port number of the FTP is 20 and 21