October Personal Assessment

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.