Activate FTP and create FTP user

!!! We strongly recommend using SFTP instead of FTP. No changes to the config are necessary for SFTP, as this protocol works via SSH and the already stored key !!!

The following line must be added to the /etc/rc.conf file:

inetd_enable="YES"

FTP must then be activated in the inetd config file. To do this, edit the following lines in /etc/inetd.conf :

Vorher:
#ftp     stream  tcp     nowait  root    /usr/libexec/ftpd       ftpd -l
#ftp     stream  tcp6    nowait  root    /usr/libexec/ftpd       ftpd -l

Nachher:
ftp     stream  tcp     nowait  root    /usr/libexec/ftpd       ftpd -ll
ftp     stream  tcp6    nowait  root    /usr/libexec/ftpd       ftpd -ll

Now you can start inetd:

sudo service inetd start

Finally, you can now create a user who requires a password to access the server via FTP.

sudo adduser <username>

In order to be able to access data outside the home directory, the user must be entered in the corresponding group of the respective owner in /etc/groups.