FTP (File Transfer Protocol) is a network protocol used to transfer files over a TCP/IP network. The protocol was designed to enable easy file exchange between systems. With ProFTPD, you can set up such an FTP server on a Linux operating system. ProFTPD is easy to install and configure and offers many features such as creating user accounts, managing access rights, and transferring files. In this guide, we will show you how to install and configure ProFTPD on a Linux server.
To add an FTP user, you first need to install the FTP server. Connect to your server once via SSH (e.g., with Putty).
To install the FTP server, enter the following command: apt-get install proftpd. Confirm the prompt with Y and press Enter:
Now we need to adjust the configuration. Open the configuration file with: nano /etc/proftpd/proftpd.conf and confirm. The file will then open in the Nano editor:
The following entries need to be added:
Now the FTP server must be restarted for the changes to take effect. Do this with the command: service proftpd restart
To create a new FTP user, we first need to create an FTP group. This is done with the command addgroup ftpuser. It looks like this:
Now we can add our first FTP user with the commands adduser userftp -shell /bin/false -home /var/www and then adduser userftp ftpuser.
You will then be prompted to set a password:
Next, confirm that the entries are correct:
The last step is to assign the new user to the group via adduser userftp ftpuser:
Now you can connect using the configured credentials: