userlist_enable=YES userlist_file=/etc/er_list userlist_deny=NO write_enable=YES chroot_local_user=YES allow_writeable_chroot=YESĪdditionally, you can limit the local users who can access and upload files by specifying only the users contained in the erlist file. Next, you need to allow the local user to upload files and gain access to their home directory as well as make changes to the files as indicated. Therefore, we will disable login by the anonymous user and only grant access to the local user. But this is not what we want due to security purposes. By default, anonymous users are granted access. There are a couple of settings that you need to ensure are set. Proceed and edit the main configuration file - /etc/nf. $ sudo mkdir -p /home/ftpuser/ftp_dir $ sudo chmod -R 750 /home/ftpuser/ftp_dir $ sudo chown -R ftpuser: /home/ftpuser/ftp_dir Step 5: Configure vsftpdĪ few extra steps are required before we can log in and start interacting with the server. Next, create an FTP directory for the FTP user and assign the appropriate directory permissions and ownership. So, execute the command: $ echo "ftpuser" | sudo tee -a /etc/erlist Local users specified in this file are granted permission to access the FTP server. Moving on we will add the FTP user to the erlist file. $ sudo adduser ftpuserĬreate FTP user on Debian 11 Step 3: Add FTP user to the list of allowed login users Simply use the adduser command followed by the name of the user and respond to the prompts accordingly. Next, we are going to create a unique FTP user account that we are going to use to log in to the FTP server. $ sudo systemctl enable vsftpd Step 2: Create a unique FTP user Meta lost more than $500bn since name change Then enable the service to start on boot time. In case the vsftpd service is not running in your case, you can start it as indicated. You can confirm this by running the command: $ sudo systemctl status vsftpdįrom the output, you can see that vsftpd is running as expected. Once installed, vsftpd starts automatically. The command installs vsftpd, alongside other dependencies.
Therefore, use the APT package manager as shown. The vsftpd package is hosted on Official Debian repositories.
Step 1: Install vsftpd on Debian 11įirst, open the terminal and update the package lists on your Debian server.
In this tutorial, we learn how to install vsftpd FTP server on Debian 11. VSFTPD ( Very Secure FTP Daemon ) is a fast, secure and stable FTP server that uses encryption to secure data exchanged with the server. However, it is fraught with security risks since it sends data and sensitive information such as usernames and passwords in plain text. FTP, short for File Transfer Protocol, is a popular protocol for transferring files to and from an FTP server.