Would you like to learn how to install VSFTPD on Ubuntu Linux? In this tutorial, we are going to show you all the steps required to install the FTP server named VSFTPD on Ubuntu Linux.

• Ubuntu 20.04
• Ubuntu 19.10
• Ubuntu 18.04
• VSFTPD 3.0.3

Tutorial Ubuntu – Installing VSFTPD

Install the required packages.

Copy to Clipboard

Search for the VSFTPD service configuration file

Copy to Clipboard

Edit the VSFTPD service configuration file

Copy to Clipboard

Add the following lines at the end of this file.

Copy to Clipboard

Here is the file content, before our configuration.

Copy to Clipboard

Here is the file content, after our configuration.

Copy to Clipboard

The CHROOT feature will prevent users from getting out of their HOME directory.

To exclude a user from the CHROOT feature, add its username into the list file.

Copy to Clipboard

Here is the file content.

Copy to Clipboard

In our example, we excluded the account named TEST01.

Restart the FTP service.

Copy to Clipboard

Enable the VSFTPD service to start automatically during boot.

Copy to Clipboard

Congratulations! You have finished the VSFTP server installation on Ubuntu Linux.

Tutorial Ubuntu – Testing the VSFTPD installation

Create 2 user account.

Copy to Clipboard

In our example, the user account named TEST01 was excluded from the CHROOT feature.

We excluded this account by adding the username to the CHROOT list file.

Copy to Clipboard

On a remote computer, download the WINSCP software and try to connect to the FTP server.

FTP Server Connection

The Account named TEST01 will be able to access directories outside its HOME directory.

Linux FTP Server

The Account named TEST02 will not be able to access directories outside its HOME directory.

FTP Server chroot

Congratulations! You successfully tested the VSFTPD installation on Ubuntu Linux.