Installing VsFTP Server on ubuntu 22.04 LTS


VSFTP (Very Secure FTP) server is an open-source, lightweight and highly secure FTP server software for Linux/Unix-based systems. It is known for its robust security features and ease of configuration.


You must following things to complete this tutorial.

  • Ubuntu 22.04 LTS up and running.
  • Root permission.
  • Basic knowledge of linux commands.
  • Internet connectivity.

In this post, We will show you how to install vsFTP server on ubuntu 22.04.

Step 1: Install vsftpd

To install vsftpd package we need to update the ubuntu repository and then execute the installation process, use the following command for the same.

sudo apt-get update
sudo apt-get install vsftpd -y

Step 2: Configure vsftpd

After installation the vsftp package, We need to make some required changes in vsftpd.conf file, use the given command for the same.

Open the vsftpd configuration file in a text editor:

sudo nano /etc/vsftpd.conf

Make the following changes to the file, Uncomment the following lines:


Add the following lines at the end of the file to allow FTP access to local users:


Save and close the file.

Step 3: Create an FTP user

In order to use the FTP server from FileZilla or any another FTP server file, We need a FTP user So that we need to create a user by following given command.

To create user.

sudo adduser <username>

Set a password for the user when prompted.

Step 4: Create an FTP directory

Configure the FTP user home directory and required permission, Use the given command.

sudo mkdir /home/<username>/ftp
sudo chown nobody:nogroup /home/<username>/ftp
sudo chmod a-w /home/<username>/ftp

Step 5: Configure Firewall

If you have enabled UFW firewall utility So then you need to use the following command that will open the required port for FTP.

To allow port 20,21 and 40000:50000.

sudo ufw allow 20/tcp
sudo ufw allow 21/tcp
sudo ufw allow 40000:50000/tcp


That’s it! You have successfully installed and configured vsftpd on Ubuntu 22.04 LTS. You can now connect to the FTP server using an FTP client and start transferring files.

Installing VsFTP Server on ubuntu 22.04 LTS

Leave a Reply

Your email address will not be published. Required fields are marked *

Scroll to top