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

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

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

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

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:/

Windows 11 is the latest operating system launched by Microsoft, which brings a new interface design and more practical functions. However, some users encountered a black screen problem during the upgrade or use process, resulting in the inability to work properly. This article will introduce in detail several methods to effectively solve the black screen problem in Win11 and help you quickly restore the normal operation of the computer. Tool materials: System version: Windows11 (21H2) Brand model: Lenovo Xiaoxin Pro162022, Dell XPS13Plus, Asus ZenBookS13OLED Software version: NVIDIA GeForceExperience3.26.0.160, Intel Driver & SupportAssist

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

As the computer is used for an extended period of time, the system will gradually accumulate many junk files and useless programs, causing the system to slow down or even malfunction. At this time, restoring factory settings becomes a good choice. This article will take a Lenovo laptop as an example to introduce how to restore the factory settings of the win11 system with one click and give your computer a new lease of life. Tool materials: System version: Windows 11 Brand model: Lenovo Xiaoxin Pro16 2022 Software version: No additional software required 1. Preparation 1. Back up important data: Restoring factory settings will delete all data in the C drive, so be sure to copy important files before operation Back up to other drive letters or external storage devices. 2. Make sure the computer has sufficient power: the recovery process may take some time, it is recommended to connect

Computers and televisions have become indispensable entertainment tools in people's lives. In the digital era. Imagine being able to wirelessly cast content from your computer to a TV to play games and conduct presentations. Imagine that we would be able to enjoy movies on a larger screen. Let you enjoy a more shocking audio-visual experience. This article will show you how to achieve wireless screen mirroring between your computer and TV in simple steps. 1. Prepare a TV that supports wireless projection. Make sure you have a TV that supports wireless projection. If your TV doesn't have one, you can buy an external wireless screen projection device. Most smart TVs on the market now have this built-in function, such as Chromecast or AppleTV. 2. Choose the appropriate screencasting protocol. Next, choose the appropriate
