

To do this, run the following command: $ sudo mkdir -p /home/ftpuser/ftp This is the directory where the user will be able to access and upload files. Once the user is created, we need to create a directory for the user. You will be prompted to set the password for the user. To create a user account, run the following command: $ sudo adduser ftpuser Once the FTP server is installed and configured, we need to set up a user account.įor security reasons, it is recommended to create a separate user account for FTP access. Save and close the file when you are finished. If you want to allow local users to login, uncomment the following line: #local_enable=YES If you want to disallow anonymous access, uncomment the following line: #anon_login=YES All the options are explained in detail in the comments.īy default, anonymous users are allowed to login to the FTP server. The default vsftpd configuration file is well-commented. Open this file with a text editor: $ sudo nano /etc/nf The main configuration file is located at /etc/nf. Now that vsftpd is installed, we need to configure it. Once the installation is complete, the vsftpd service will be started automatically. Once the package list is updated, install vsftpd: $ sudo apt install vsftpd To install it, first update the package list: $ sudo apt update We will be using vsftpd, which is a popular FTP server for Unix-based systems. The first step is to install the FTP server software.
#Activate ftp server ubuntu how to
In this guide, we will discuss how to set up an FTP server on an Ubuntu 18.04 20.04 22.04. Setting up an FTP server on an Ubuntu 18.04 20.04 22.04 LTS can be useful for a variety of purposes.

It allows users to upload, download, and manage files on a remote server. FTP (File Transfer Protocol) is a commonly used protocol for exchanging files over the Internet.
