[CentOS Linux 7] Experiment 7 [FTP server configuration management]

  1. [Linux CentOS 7] Experiment 1 [VMware installation, new virtual machine; 63 basic commands running result graph]
  2. [Linux CentOS 7] Experiment 2 [Shell Programming and Application]
  3. [Linux CentOS 7] Experiment 3 [User group management, disk partition and file system management]
  4. [Linux CentOS 7] Experiment 4 [Linux network application, C language programming under Linux]
  5. [Linux CentOS 7] Experiment 5 [Install VScode and write HTML web pages with VScode]

  1. [Linux CentOS 7] Experiment 1 [Linux file directory management]
  2. [Linux CentOS 7] Experiment 2 [Linux multi-user management]
  3. [Linux CentOS 7] Experiment 3 [Network Configuration Management]
  4. [Linux CentOS 7] Experiment 4 [Shell Programming]
  5. [ Linux  CentOS 7] Experiment 5 [Samba Server Management]
  6. [CentOS Linux 7] Experiment 6 [Web server construction and management]
  7. [CentOS Linux 7] Experiment 7 [FTP server configuration management]

table of Contents

1. The purpose of the experiment

2. Experimental content

3. Experimental procedures and results

1. Use the rpm command to check whether the vsftpd server is installed in the system. If the vsftpd server is not installed in the system, install the vsftpd server.

2. Use the rpm command to check whether the ftp client software is installed in the system. If the ftp client software is not installed in the system, install the ftp client software.

3. vsftpd server configuration and function test.

a) Anonymous FTP basic configuration and testing, allowing anonymous FTP to upload file configuration and testing, allowing anonymous FTP to create directories and testing.

b) FTP server local user login configuration and test. Add a system user named after the pinyin of your own name in the system, and log in to the FTP server as this user to verify the correctness of the local user settings.

c) FTP server virtual user login configuration and testing, add virtual users to the FTP server, and perform FTP server settings and use virtual user accounts to log in to the FTP server for testing.

d) Welcome message settings, user login welcome message and directory welcome message configuration. In the user’s welcome message setting, it contains your name and student ID information.

Four, experiment summary


1. The purpose of the experiment

  1. Master the method of building and installing FTP server.
  2. Familiar with the common configuration of FTP server.
  3. Master the application of FTP server.

2. Experimental content

1. Use the rpm command to check whether the vsftpd server is installed in the system. If the vsftpd server is not installed in the system, install the vsftpd server.

2. Use the rpm command to check whether the ftp client software is installed in the system. If the ftp client software is not installed in the system, install the ftp client software.

3. vsftpd server configuration and function test.

    a) Anonymous FTP basic configuration and testing, allowing anonymous FTP to upload file configuration and testing, allowing anonymous FTP to create directories and testing.

    b) FTP server local user login configuration and test. Add a system user named after the pinyin of your own name in the system, and log in to the FTP server as this user to verify the correctness of the local user settings.

    c) FTP server virtual user login configuration and testing, add virtual users to the FTP server, and perform FTP server settings and use virtual user accounts to log in to the FTP server for testing.

    d) Welcome message settings, user login welcome message and directory welcome message configuration. In the user’s welcome message setting, it contains your name and student ID information.

3. Experimental procedures and results

1. Use the rpm command to check whether the vsftpd server is installed in the system. If the vsftpd server is not installed in the system, install the vsftpd server.

After entering the query command, the version of vsftpd installed in the current system is displayed, indicating that the vsftpd server has been installed; if there is no prompt, it means that the vsftpd server is not installed!

2. Use the rpm command to check whether the ftp client software is installed in the system. If the ftp client software is not installed in the system, install the ftp client software.

3. vsftpd server configuration and function test.

a) Anonymous FTP basic configuration and testing, allowing anonymous FTP to upload file configuration and testing, allowing anonymous FTP to create directories and testing.

1. A pub subfolder is set by default in the /var/ftp/ directory, which can be used for uploading files when accessing FTP anonymously:

2. Open anonymous user configuration and start the service:

Edit the configuration file:

3. Service start:

4. Open pam authentication and view:

Enable pam authentication #userlist_enable=YES: enable user list

5. Create software and test:

Create files aq.txt, bq.txt, and set file permissions:

6. Select the client and close the firewall:

7. Install FTP service and log in to the server address:

8. Install FTP service and log in to the server address:

b) FTP server local user login configuration and test. Add a system user named after the pinyin of your own name in the system, and log in to the FTP server as this user to verify the correctness of the local user settings.

1. Open the firewall:

2. Modify password:

3. Login:

c) FTP server virtual user login configuration and testing, add virtual users to the FTP server, and perform FTP server settings and use virtual user accounts to log in to the FTP server for testing.

1. Edit the configuration file:

2. Start the service:

3. Login server address:

d) Welcome message settings, user login welcome message and directory welcome message configuration. In the user’s welcome message setting, it contains your name and student ID information.

1. Login server address:

2. View the file:

Four, experiment summary

This test is more difficult. Through experiments, I have a deeper understanding of the FTP server, and mastered the user classification name, installation and startup, remote connection and access, configuration, etc. of the FTP server. To install the FTP server, you need to install the vsftpd service and FTP client. After installation, you can start the vsftpd service and set the auto-start state, and use an anonymous user for testing. The configuration of the FTP server is completed by setting the configuration items in the main configuration file /etc/vsftpd.conf.

Guess you like

Origin blog.csdn.net/weixin_44949135/article/details/111242032
Recommended