sudo apt update sudo apt install vsftpd -yFor CentOS/RHEL:
sudo yum install vsftpd -y
sudo nano /etc/vsftpd.conf
anonymous_enable=NO local_enable=YES write_enable=YES chroot_local_user=YES allow_writeable_chroot=YES chroot_local_user=YES user_sub_token=$USER local_root=/home/$USER/ftp
sudo systemctl restart vsftpd
sudo adduser <username>
sudo mkdir /home/<username>/ftp sudo chown <username> /home/<username>/ftp
sudo tail /var/log/vsftpd.log
sudo apt update sudo apt install vsftpd -y sudo echo -e "write_enable=YES\nchroot_local_user=YES\nallow_writeable_chroot=YES\nchroot_local_user=YES\nuser_sub_token=$USER\nlocal_root=/home/$USER/ftp" >> /etc/vsftpd.conf sudo systemctl restart vsftpd useradd -m ftpuser;echo "ftpuser:ftpuser" | chpasswd sudo mkdir /home/ftpuser/ftp sudo chown ftpuser /home/ftpuser/ftpFedora/ RHEL Based :
sudo dnf update -y dnf install vsftpd -y sudo echo -e "write_enable=YES\nchroot_local_user=YES\nallow_writeable_chroot=YES\nchroot_local_user=YES\nuser_sub_token=$USER\nlocal_root=/home/$USER/ftp" >> /etc/vsftpd.conf sudo systemctl restart vsftpd useradd -m ftpuser;echo "ftpuser:ftpuser" | chpasswd sudo mkdir /home/ftpuser/ftp sudo chown ftpuser /home/ftpuser/ftp