Use FTP server user liwu to try to log in. 8. Troubleshooting ideas
Table of contents
1. FTP service 1. FTP contract introduction
FTP is a file transfer contract. It is a TCP-based contract and adopts the customer/server model. Through the FTP contract, users can upload or download files on the FTP server.
Use ports TCP 20 and 21:
Port 20: used to build data connections and transfer file data.
21 port: used to build control connections.
Disadvantages: Data cannot be automatically synchronized and needs to be automatically synchronized.
2. FTP service principle
FTP services are divided into 2 typeslinux adds ftp servicelinux operating system version, active connection and passive connection.
Active connection principle:
Passive connection principle:
3. Configuration file path
Service configuration file:/etc/vsftpd/vsftpd.conf
Blacklist configuration file:/etc/vsftpd/user_list
Default root directory of anonymous user FTP service: /var/ftp
Default root directory of local user FTP service: /home/Account file with the same name
Error log path:/var/log/messages
2. FTP server setup 1. Build environment
centos7.4 system virtual machine onelinux add ftp service, configure to turn off the firewall and selinux.
systemctlstopfirewalld #关闭防火墙 setenforce0#关闭selinux
2. Detect the environment and install the ftp service
rpa -q vsftpd#检查是否安装ftp服务 yum-y installvsftpd#安装ftp服务
3. Back up the configuration file and add users
useraddlisi #添加lisi用户 useraddliwu #添加liwu用户 echo '123456' |passwd --stdinlisi #设置账户lisi的密码为123456 echo '123456' |passwd --stdinliwu #设置账户lisi的密码为123456 cd/etc/vsftpd/ #进入ftp配置文件目录 cp vsftpd.conf vsftpd.conf.bak#备份配置文件
4. FTP configuration file analysis
anonymous_enable=YES #允许匿名用户访问(账户名为ftp,不需要密码),默认允许建议关闭 local_enable=YES #允许本地用户访问(本地可登录账户) write_enable=YES #开放服务器的写权限,上传文件到服务器必须开启,默认开启 local_umask=022 #本地用户文件权限反掩码,文件权限777-umask,文件权限666-umask dirmessage_enable=YES #开启日志消息,默认开启 xferlog_enable=YES #开启上传现在日志,默认开启 connect_from_port_20=YES #确保端口数据传输来自20端口,默认开启 xferlog_std_format=YES #日志文件设置为标准ftpd xferlog格式,默认开启,日志位置/var/log/xferlog chroot_local_user=YES #将用户访问权限限制在用户自己的根目录下,默认关闭。 allow_writeable_chroot=YES #允许被限制用户对自己根目录进行写操作 anon_root=/var #设置本地用户的默认根目录为/var,注意需要此目录给其他用户读写权限才可上传下载 userlist_enable=YES #开启user_list用户列表,文件位置/etc/vsftpd/user_list,默认关闭 userlist_deny=YES #若user_list是开启状态userlist_deny=YES是黑名单文件中的用户不能登录,默认关闭 #若user_list是开启状态,userlist_deny=NO则只允许user_list中的用户登录
5. Configure local users to access ftp
6. Enable ftp service
systemctlstartvsftpd #开启vsftpd服务 systemctlstatus vsftpd #查看vsftpd服务状态
7. Verification service
①Configure read and write permissions for other users in the /mnt directory
chmod766 -R /mnt #修改/mnt目录用户其他权限具有读写权限
② Configure the liwu user into the user_list file in the blacklist, the file location is /etc/vsftpd/user_list
③Create an a.txt file under /mnt with the content of 123
④Open your own windows computer cmd window and enter the ftp server IP to log in with the account password
⑤The file path downloaded to the local area is under C:Users
⑥Delete the a.txt under /mnt and upload the local a.txt.
⑦. Use blacklist user liwu to try to log in
8. Troubleshooting ideas
①First check whether the local firewall, ftp firewall and selinux are turned off
②Check the configuration file content for errors
③ Check whether the service status is normal. Linux restart command. If it is not normal, check the /var/log/messages log for troubleshooting.
④The default root directory of anonymous users cannot have read permissions, otherwise they will not be able to connect to the ftp server
⑤You can get but cannot put to view the permissions and ownership of the root directory
The above is the detailed content of Use FTP server user liwu to try to log in. 8. Troubleshooting ideas. For more information, please follow other related articles on the PHP Chinese website!

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics

How to flash the Windows system on BBK tablet? The first way is to install the system on the hard disk. As long as the computer system does not crash, you can enter the system and download things, you can use the computer hard drive to install the system. The method is as follows: Depending on your computer configuration, you can install the WIN7 operating system. We choose to download Xiaobai's one-click reinstallation system in vivopad to install it. First, select the system version suitable for your computer, and click "Install this system" to next step. Then we wait patiently for the installation resources to be downloaded, and then wait for the environment to be deployed and restarted. The steps to install win11 on vivopad are: first use the software to check whether win11 can be installed. After passing the system detection, enter the system settings. Select the Update & Security option there. Click

3d rendering, computer configuration? 1 Computer configuration is very important for 3D rendering, and sufficient hardware performance is required to ensure rendering effect and speed. 23D rendering requires a lot of calculations and image processing, so it requires high-performance CPU, graphics card and memory. 3 It is recommended to configure at least one computer with at least 6 cores and 12 threads CPU, more than 16GB of memory and a high-performance graphics card to meet the higher 3D rendering needs. At the same time, you also need to pay attention to the computer's heat dissipation and power supply configuration to ensure the stable operation of the computer. What kind of computer is needed to design 3D rendering? I am also a designer, so I will give you a set of configurations (I will use it again) CPU: amd960t with 6 cores (or 1090t directly overclocked) Memory: 1333

Reinstalling the system is a problem that many computer users often encounter. Whether it is due to system crash, poisoning or wanting to upgrade the system, reinstalling the system is a good choice. However, many people encounter various problems when reinstalling the system, such as not knowing how to set up the BIOS, not knowing how to choose a suitable installation disk, etc. Today, we will talk about some things you must know when reinstalling the system from a USB flash drive, and teach you how to set up the BIOS correctly and successfully complete the system reinstallation. Tool materials: System version: Windows1020H2 Brand model: Lenovo Xiaoxin Air14 Software version: Pocket machine One-click reinstallation of system software v1.0 1. Preparation 1. Prepare a U disk with a capacity of no less than 8GB, preferably USB3. 0, so the speed will be faster

How to assemble an acer desktop computer? The assembly method of Acer desktop computer is as follows: open the case, install the power supply into the case, and tighten the screws. Install the CPU onto the motherboard, making sure the pins on the CPU are aligned with the slots on the motherboard, and tighten the screws on the CPU heat sink. Install the memory module onto the motherboard, making sure that the bumps on the memory module are aligned with the slots on the motherboard. Press down hard until you hear a "pop" sound to complete the installation. Install graphics cards, sound cards, network cards and other boards onto the motherboard, making sure the screws on the boards are tightened. Install storage devices such as hard drives and optical drives into the chassis, making sure the screws are tightened. Connect the motherboard to the chassis, including power cables, hard drive cables, optical drive cables, etc. Finally, close the chassis cover and tighten the screws to complete the assembly. exist

Xiaomi’s new photography software Leica Camera is very popular, but this software will crash when taking pictures. Many users don’t know what’s going on and how to solve it. Let’s take a look at the Xiaomi Leica Camera crash solution. Method. What to do if the Xiaomi Leica camera crashes? Solution 1: 1. First turn off the phone, and then restart the phone after 30 seconds. 2. Then download a camera software of the same type and try to see if it can operate normally. 3. Open the phone settings-camera program-clear cache data. 4. If the problem is still not solved, try backing up the phone data and restoring factory settings. 5. If none of the above points are true, it may be a hardware problem with the camera component, and the phone needs to be returned to the factory for repair and testing. Solution two: 1. Back up important data and open the security center

U disk is one of the commonly used storage devices in our daily work and life, but sometimes we encounter situations where the U disk is write-protected and cannot write data. This article will introduce several simple and effective methods to help you quickly remove the write protection of the USB flash drive and restore the normal use of the USB flash drive. Tool materials: System version: Windows1020H2, macOS BigSur11.2.3 Brand model: SanDisk UltraFlair USB3.0 flash drive, Kingston DataTraveler100G3USB3.0 flash drive Software version: DiskGenius5.4.2.1239, ChipGenius4.19.1225 1. Check the physical write protection switch of the USB flash drive on some USB flash drives Designed with

Microsoft's latest Windows 11 operating system has attracted much attention. Its new interface design, powerful performance and rich functional features have brought users a new experience. This article will give you a detailed introduction to the official original ISO image download method of the Windows 11 Chinese official version system, and provide some practical installation suggestions, hoping to help everyone successfully upgrade to this new operating system. Tool materials: System version: Windows 11 Chinese official version Brand model: Supports multiple brands and models of computers, such as Lenovo, Dell, Asus, etc. Software version: Microsoft official original ISO image 1. Download Windows 11 official original ISO image 1. Visit Microsoft official Website (https:/

Reinstalling the system is a common computer maintenance operation, but sometimes you encounter some unexpected situations, such as the memory becoming smaller after reinstalling the system on a USB flash drive. HH? Below we will analyze the reasons and provide some practical suggestions. Tool materials: System version: Windows 1021H2 Brand model: Lenovo ThinkPad After reinstalling the system, some users will install a large number of unnecessary drivers and software, which takes up memory space. 2. The system disk partition scheme is unreasonable. If the system disk space is not properly allocated when reinstalling the system, it may cause memory outage.
