{"id":13932,"date":"2024-06-05T00:30:09","date_gmt":"2024-06-04T21:30:09","guid":{"rendered":"http:\/\/local.brightwhiz\/?p=13932"},"modified":"2024-06-05T00:30:10","modified_gmt":"2024-06-04T21:30:10","slug":"how-to-install-and-configure-vsftpd-in-ubuntu-24-04-noble-numbat","status":"publish","type":"post","link":"http:\/\/local.brightwhiz\/how-to-install-and-configure-vsftpd-in-ubuntu-24-04-noble-numbat\/","title":{"rendered":"How to Install and Configure VSFTPD In Ubuntu 24.04 Noble Numbat"},"content":{"rendered":"\n

If you’re looking to set up an FTP server on Ubuntu 24.04 Noble Numbat, VSFTPD (Very Secure FTP Daemon) is a great choice. It’s secure, fast, and stable, making it one of the most popular FTP servers available. In this guide, we’ll walk you through the steps to install and configure VSFTPD on your Ubuntu 24.04 system.<\/p>\n\n\n\n

Prerequisites<\/h2>\n\n\n\n

Before we start, make sure you have the following:<\/p>\n\n\n\n

    \n
  1. A fresh installation of Ubuntu<\/a> 24.04 Noble Numbat.<\/li>\n\n\n\n
  2. A user account with sudo privileges.<\/li>\n\n\n\n
  3. Basic knowledge of using the terminal.<\/li>\n<\/ol>\n\n\n\n

    Step 1: Update Your System<\/h2>\n\n\n\n

    First, ensure your system is up-to-date by running the following commands:<\/p>\n\n\n\n

    $ sudo apt update\n$ sudo apt upgrade -y<\/code><\/pre>\n\n\n\n

    Step 2: Install VSFTPD<\/h2>\n\n\n\n

    Next, install the VSFTPD package using the APT package manager:<\/p>\n\n\n\n

    $ sudo apt install vsftpd -y<\/code><\/pre>\n\n\n\n

    Step 3: Backup the Default Configuration File<\/h2>\n\n\n\n

    Before making any changes, it’s a good idea to back up the default configuration file:<\/p>\n\n\n\n

    $ sudo cp \/etc\/vsftpd.conf \/etc\/vsftpd.conf.bak<\/code><\/pre>\n\n\n\n

    Step 4: Configure VSFTPD<\/h2>\n\n\n\n

    Open the VSFTPD configuration file in your preferred text editor. Here, we’ll use nano<\/code>:<\/p>\n\n\n\n

    $ sudo nano \/etc\/vsftpd.conf<\/code><\/pre>\n\n\n\n

    Make the following changes to the file:<\/p>\n\n\n\n

      \n
    1. Uncomment the following lines<\/strong> by removing the #<\/code> at the beginning:<\/li>\n<\/ol>\n\n\n\n
      write_enable=YES\nlocal_umask=022<\/code><\/pre>\n\n\n\n
        \n
      1. Add the following lines<\/strong> to the end of the file to enhance security and functionality:<\/li>\n<\/ol>\n\n\n\n
        chroot_local_user=YES\nallow_writeable_chroot=YES\npasv_min_port=10000\npasv_max_port=10100\nuser_sub_token=$USER\nlocal_root=\/home\/$USER\/ftp\nuserlist_enable=YES\nuserlist_file=\/etc\/vsftpd.userlist\nuserlist_deny=NO<\/code><\/pre>\n\n\n\n