Yet, there is one more problem, it is VSFTPD will not allow a user to connect to the FTP server if the home directory is writable. However, to restrict the user’s access to only some specific directory vsftpd uses chroot that we also need to enable, which we do later in this article. Now, let’s create a folder under the home directory of the newly created user so that the user can only access that to upload and download files. The above command will also ask you to set the password for the user. Note: Change h2smedia with whatever name you want to give to your user. Let’s create a user that will not have sudo access and we only use it to access a specific folder under its home directory for FTP to read and write files. Once the installation is completed, let’s check the service of this FTP server is running in the background without producing any errors. We don’t need to add any third-party repository or download any deb binary manually because the official Ubuntu repository is enough use the APT package manager command given below and you are done: sudo apt install vsftpd 3. Therefore, this step ensures all the latest available updates are on our system. Let’s start with the running of the system update command because we are going to use an APT package manager to install VSFTPD. The steps given here can be used on Ubuntu 20.04 as well including Debian 11, Linux Mint, and other similar Linux distros. Uninstall or Remove Steps to install and VSFTPD FTP Server on Ubuntu 20.04
0 Comments
Leave a Reply. |