In this topic we are going to configure FTP Server as central repository of files for an organization. Files stored on FTP Server can be accessed by legitimate clients. From client computers users can download and upload files using FTP client software.
#rpm –q vsftpd
If it is installed then remove the package
#rpm –e vsftpd
Now perform fresh installation
#yum install vsftpd* -y
anonymous_enable=NO
local_enable=YES
write_enable=YES
local_umask=022
dirmessage_enable=YES
xferlog_enable=YES
connect_from_port_20=YES
xferlog_std_format=YES
chroot_local_user=YES
allow_writeable_chroot=YES
listen=NO
listen_ipv6=YES
pam_service_name=vsftpd
userlist_enable=YES
#service vsftpd restart
#systemctl restart vsftpd
#systemctl status vsftpd
#systemctl stop firewalld
#systemctl enable vsftpd
#useradd ftpuser
#passwd ftpuser
Password:123
Confirm Password:123
#mkdir –p /home/ftpuser/ftp_dir
#chmod –R 750 /home/ftpuser/ftp_dir
#chown –R ftpuser: /home/ftpuser/ftp_dir
#cd /var/ftp/pub
#touch file1 file2 file3 file4
#cat > newfile
This is test file
<ctrl+c>
#ls –l