![]() ![]() Step 4: Starting the ProFTPd service /etc/init. At the bottom of this configuration file, add these lines.īe sure to replace \ with the user(s) you created previously Step 3: Set the directory per virtual user. Please set it to this DefaultRoot /home/FTP It will look like this at first #DefaultRoot ~ Step 2: Uncomment the DefaultRoot option. Step 1: Setting the default root directory nano /etc/proftpd/nf If you're going to have multiple users, don't forget to add those directories into the FTP directory. How To Configure The ProFTPd Config File To Lock Each User In Their Directory Step 6: Make sure to change the permissions of the file to 777 chmod 777 FTP Replace \ with what you would like your virtual user to be called and replace \ with your desired password Step 5: Create the FTP virtual user useradd -p -d /home/FTP/ -s /bin/false Parent topic: Pre-Installation setup tasks. Replace \ with what you would like your virtual user to be called Log in as root : Change to the following directory: /etc/init.d Run the following command. Step 4: Create the directory for your virtual user mkdir /home/FTP/ The FTP directory can be called anything you wish, but for now, we will call it FTP Step 3: Create the FTP directory cd /home Step 2: Then add the following line at the bottom /bin/false Step 1: First, we need to add a line to the /etc/shells file nano /etc/shells How To Configure Virtual Users and Directories Step 3: Install Proftpd apt-get install proftpd Step 1: SSH into your Debian Installation For additional help or useful information, we recommend you check the official vsftpd website.This guide will walk you through ProFTPd server installation and configuration, showing you how to customize your FTP server's actions by walking you through ProFTPd configuration. Thanks for using this tutorial for installing FTP Server on your Debian 10 Bustersystem. ![]() In our case, we are using FileZilla as an FTP client.Ĭongratulations! You have successfully installed FTP Server. To test the FTP connection, you will need to install an FTP client in the same or a separate system from where you want to access the FTP server. This file should be visible when we log in to FTP in the next steps: sudo bash -c "echo FTP TESTING > /home/ftpuser/FTP-TEST" In order to verify that everything’s working properly, you should store at least one file in chedelics’s home directory. In this example, we will create a new user called chedelics: $ sudo useradd -m chedelics We will now create a new user that we will use to log into FTP. ![]() Reload the UFW rules by disabling and re-enabling UFW: sudo ufw disable To open port 21 (FTP command port), port 20 (FTP data port) and 30000-31000 (Passive ports range), run the following commands: sudo ufw allow 20:21/tcp With the configuration file saved, restart vsftpd apply the new changes: sudo systemctl restart vsftpd Rsa_private_key_file=/etc/ssl/private/ssl-cert-snakeoil.key Rsa_cert_file=/etc/ssl/certs/ssl-cert-snakeoil.pem Now we will perform some configurations required for setting up the FTP server in our Debian OS: sudo cp /etc/nf /etc/Īdd/modify the following options with these values: Once the installation is completed, you can check the version of vsftpd package by running the following command in Terminal: sudo systemctl status vsftpd Let’s start by updating our package list and installing the vsftpd daemon: sudo apt install vsftpd The vsftpd package is available in the Debian repositories. Installing the FTP server on Debian systems. Before we install any software, it’s important to make sure your system is up to date by running the following apt commands in the terminal: sudo apt update We recommend acting as a non-root sudo user, however, as you can harm your system if you’re not careful when acting as the root. ![]() A non-root sudo useror access to the root user.It’s recommended that you use a fresh OS install to prevent any potential issues.A server running one of the following operating systems: Debian 10. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |