The CentOS system installs the FTP server. (Exam 30 minutes) 1. Turn on anonymous uploads 2. Create a new FTP user WY, set the password to onlyidc2018,ftp directory to/var/ftp/wy and upload the deleted files.
The CentOS system installs the FTP server.
1. Detect if FTP is already installed
Rpm-qa | grep vsftpd, no information is returned stating that FTP is not installed.
2. Install FTP.
Yum Install vsftpd
Is this OK [y/n] Select Y
3. Set VSFTPD boot
Chkconfig--level vsftpd on
4. Modification of configuration files
Vi/etc/vsftpd/vsftpd.conf
5. Turn on anonymous uploads
Anon_upload_enable=yes before the # number removed
6. Modify anonymous user home directory permissions
The anonymous user can then upload it.
7. New FTP user WY, password onlyidc2018
useradd-d/var/ftp/wy-s/sbin/nologin-g Root WY
passwd WY
8. Modify WY User Home directory Permissions
9. Turn off the firewall
Service Iptables Stop
Permanently shut down the firewall command chkconfig iptables off
If you want to open a firewall, open port 21,
Under Port 22, follow the rules for adding a 21 port.
-A input-m state--state new-m tcp-p TCP--dport 21-j ACCEPT
Then edit/etc/sysconfig/iptables-config
Vi/etc/sysconfig/iptables-config
Modify Iptables_modules= "" Into iptables_modules= "Ip_conntrack_ftp"
Restart Firewall service iptables restart it's ready.
10. Turn off SELinux
Setenforce 0
Permanent shutdown requires SELinux configuration file modification
Change the selinux=enforcing into selinux=disabled
Press ESC
: Wq Save
Rebooting the system reboot
11. Start the FTP
Service VSFTPD Restart
October Personal Assessment