FTP Installation
Yum Install vsftpd
Vi/etc/vsftpd/vsftpd.conf (can be backed up, but not placed in this directory, or start VSFTPD
It will also load its backup file, reporting a startup error, because two profiles cannot be loaded at the same time)
Add Passive mode FTP port number range
Parameter settings:
pasv_min_port=2100
pasv_max_port=2199
=====
Comment Anonymous_enable=yes
Open
Chroot_list_enable=yes
Chroo_list_file=/etc/vsftpd/chroot_list
Add at end of file
Userlist_deny=no
======
Add FTP User
Useradd-g ftp-s/sbin/nologin Ftpuser
passwd Ftpuser
Add Ftpuser to User_list
Vi/etc/vsftpd/user_list
Add Ftpuser at the end
====
Adding an FTP user to the Chroot_list file
Add Ftpuser at the end of the new chroot_list in the/ETC/VSFTPF directory
====
Close Serlinux
vi/etc/rc.local file end Add Setenforce 0
====
Open FTP port
Vi/etc/sysconfig/iptables
Add at the end
-A input-m state--state new-m tcp-p TCP--dport 21-j ACCEPT
-A input-m state--state new-m tcp-p TCP--dport 2100:2199-j ACCEPT
=====
Restart Service iptables Restart
====
Service VSFTPD Restart
If you start an error, see if 21 or 22 ports are occupied
NETSTAT-NATP | grep 21/22
Linux-ftp Install