how to install ftp server on Linux
Step 1 Install vsftpd sudo dnf install vsftpd
-start the vsftpd service sudo systemctl start vsftpd
-enable startup automatically sudo systemctl enable vsftpd –now
-verify sudo systemctl status vsftpd
Step 2 Create a ftp user and its directory
-create user sudo adduser ftpuser
sudo passwd ftpuser
-create directory sudo mkdir -p /home/ftpuser/ftp_dir
-assign permissions and ownership sudo chmod -R 750 /home/ftpuser/ftp_dir
sudo chown -R ftpuser: /home/ftpuser/ftp_dir
– add the FTP user to the /etc/vsftpd/user_list sudo bash -c ‘echo ftpuser /etc/vsftpd/user_list’
“don’t forget angle brackets as in video!!”
Step 3 Configure vsftpd via its configuration file
-open file vim /etc/vsftpd/vsftpd.conf
-config as following
anonymous_enable=NO
local_enable=YES
write_enable=YES
chroot_local_user=YES
allow_writeable_chroot=YES
pasv_min_port=30000
pasv_max_port=31000
userlist_file=/etc/vsftpd/user_list
userlist_deny=NO
-restart service sudo systemctl restart vsftpd
**missing step**
step 4 Allow ftp server [vsftpd] ports in the firewall
— sudo firewall-cmd –permanent –add-port=20-21/tcp
— sudo firewall-cmd –permanent –add-port=30000-31000/tcp
— sudo firewall-cmd –reload
by RoFat
linux ftp server