Before we start with the configuration, we will install the VSFTPD daemon with the following commands:<\/p>\n
sudo apt install vsftpd<\/pre>\nOnce installed, start and enable the vsftpd. service.<\/p>\n
sudo systemctl start vsftpd.service && sudo systemctl enable vsftpd.service<\/pre>\nCheck if the service is running properly.<\/p>\n
sudo systemctl status vsftpd.service<\/pre>\nYou should get the following output:<\/p>\n
root@host:~# sudo systemctl status vsftpd.service\r\n\u25cf vsftpd.service - vsftpd FTP server\r\n Loaded: loaded (\/lib\/systemd\/system\/vsftpd.service; enabled; vendor preset: enabled)\r\n Active: active (running) since Mon 2022-09-19 21:00:12 CEST; 5min ago\r\n Main PID: 97973 (vsftpd)\r\n Tasks: 1 (limit: 4575)\r\n Memory: 856.0K\r\n CPU: 16ms\r\n CGroup: \/system.slice\/vsftpd.service\r\n \u2514\u250097973 \/usr\/sbin\/vsftpd \/etc\/vsftpd.conf\r\n<\/pre>\n<\/span>Step 3. Create User<\/span><\/h2>\nThe next step is to create a user. To do that, execute the following command:<\/p>\n
sudo adduser developer<\/pre>\nExecute the command, enter the password twice, hit Enter five times, and confirm the information with Y<\/b>.<\/p>\nroot@host:~# sudo adduser developer\r\nAdding user `developer' ...\r\nAdding new group `developer' (1001) ...\r\nAdding new user `developer' (1001) with group `developer' ...\r\nCreating home directory `\/home\/developer' ...\r\nCopying files from `\/etc\/skel' ...\r\nNew password:\r\nRetype new password:\r\npasswd: password updated successfully\r\nChanging the user information for developer\r\nEnter the new value, or press ENTER for the default\r\n Full Name []:\r\n Room Number []:\r\n Work Phone []:\r\n Home Phone []:\r\n Other []:\r\nIs the information correct? [Y\/n] Y<\/b><\/pre>\nThe user developer<\/b> is automatically created in the \/home\/developer<\/b> directory.<\/p>\nroot@host:# cd \/home\/developer\/ && ls -al\r\ntotal 20\r\ndrwxr-xr-x 2 developer developer 4096 Sep 19 21:27 .\r\ndrwxr-xr-x 3 root root 4096 Sep 19 21:27 ..\r\n-rw-r--r-- 1 developer developer 220 Sep 19 21:27 .bash_logout\r\n-rw-r--r-- 1 developer developer 3771 Sep 19 21:27 .bashrc\r\n-rw-r--r-- 1 developer developer 807 Sep 19 21:27 .profile\r\n<\/pre>\nNow, we will create a directory called ftp<\/b> inside the home directory of the developer user.<\/p>\nmkdir \/home\/developer\/ftp<\/pre>\nOnce created, set the following permissions to the ftp folder.<\/p>\n
chown nobody:nogroup \/home\/developer\/ftp\/\r\nchmod a-w \/home\/developer\/ftp\r\n<\/pre>\n