KB 709134 - Setup FTP access to rocky linux 9.5 server using vsftpd

KB 709134 - 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