CentOS 8.x vsftpd

From Notes_Wiki

Home > CentOS > CentOS 8.x > CentOS 8.x file sharing > CentOS 8.x vsftpd

To setup vsftpd use following steps

  1. Install vsftpd server
    dnf -y install vsftpd vim
  2. Enable and start service
    systemctl enable vsftpd
    systemctl start vsftpd
  3. Edit '/etc/vsftpd/vsftpd.conf' as follows:
    chroot_local_user=YES
    allow_writeable_chroot=YES
    chroot_list_enable=YES
    # (default follows)
    chroot_list_file=/etc/vsftpd/chroot_list
  4. Create user using:
    useradd user1
    passwd user1
  5. Create /etc/vsftpd/chroot_list with
    user1
  6. Restart and check status
    systemctl restart vsftpd
    systemctl status vsftpd
  7. Either disable firewall using
    systemctl stop firewalld
    systemctl disable firewalld
    OR allow ftp via firewall using (Not tested)
    firewall-cmd --add-service=ftp --permanent
    firewall-cmd --reload
  8. Open nautilus and try to connect using
    1. ftp://anonymous@<server-ip-or-fqdn> #Should lead to permission denied
    2. ftp://user1@<server-ip-or-fqdn> #Enter password to access entire system using ftp protocol

Refer:


Home > CentOS > CentOS 8.x > CentOS 8.x file sharing > CentOS 8.x vsftpd