Setup FTP access to rocky linux 9.5 server using vsftpd

Setup FTP access to rocky linux 9.5 server using vsftpd

Install vsftpd

  1. sudo dnf install vsftpd -y

Enable and Start the vsftpd Service

  1. sudo systemctl enable vsftpd --now

Verify the status:


  1. sudo systemctl status vsftpd

Adjust Firewall Rules

By default, the Rocky Linux firewall blocks FTP traffic. Allow it:

  1. sudo firewall-cmd --permanent --add-service=ftp sudo firewall-cmd --reload

4️⃣ Configure vsftpd

Edit the configuration file:

  1. sudo nano /etc/vsftpd/vsftpd.conf

Here are the most important settings:

  • Allow local users to log in:

local_enable=YES
  • Allow file upload (write access):


write_enable=YES
  • Enable chroot to restrict users to their home directories:


chroot_local_user=YES
  • Allow passive mode (important for FTP clients behind NAT/firewalls):

pasv_enable=YES pasv_min_port=40000 pasv_max_port=50000

Restart vsftpd to Apply Changes


  1. sudo systemctl restart vsftpd

Access via FTP Client like FileZilla



    • Related Articles

    • Setup noVNC on Ubuntu 20.04/Gnome 3.36

      VNC (Virtual Network Computing) enables you to control your Linux installation from another computer on the same network, by viewing and interacting with the desktop from the other computer. To learn more about VNC, click here noVNC allows you to ...
    • Backup, Snapshot, and Restore Linux installations using Timeshift

      If you mess up (or are going to mess up) some config files or drivers, it is always good to have a fallback point. The de-facto standard for doing this on Linux is Timeshift. Timeshift for Linux is an application that provides functionality similar ...
    • Configuring BMC in ASUS Server

      To configure the Baseboard Management Controller (BMC) IP address on an ASUS server, initially access the server's BIOS/UEFI settings and then configure the BMC network settings. Here's a step-by-step instructions Server BMC Configuration preparation ...
    • How to Partition, Format, and Mount Secondary Drives in Linux - Manual Drive Configuration (MDC)

      Introduction This guide provides detailed instructions on how to manually configure secondary drives in a Linux system, including partitioning, formatting, and mounting the drives. Warning Performing these steps on an existing primary drive or a ...
    • ASUS Server Stress Testing Guide for INTEL and AMD Platforms

      Creating a Bootable USB with Asus Test Tool Step 1: Download Required Files Download Asus Linux Image: Save the Linux image file provided by Asus. Download Memtest Tool: Open a browser, search for "Memtest," and download the free version from the ...