当前位置:网站首页>[Galaxy Kirin V10] [desktop] FTP common scene setup
[Galaxy Kirin V10] [desktop] FTP common scene setup
2022-07-04 10:35:00 【GUI Anjun @kylinos】
One 、ftp summary
See the server system above about ftp Introduction to
【 Galaxy Unicorn V10】【 The server 】ftp Introduction to use and common scene construction
Two 、 Common scene construction
( The following scenes are built with Galaxy kylin V10 0710 Take desktop system as an example )
1、 Anonymous open mode , Anonymous logins , Have full authority
#sudo -i // Desktop rights
# apt install vsftpd -y // install vsftpd
# cp -avx /etc/vsftpd.conf vsftpd.conf.bak // Back up the configuration file before modifying it
# vim /etc/vsftpd.conf // To configure
listen=YES
listen_ipv6=NO
anonymous_enable=YES
local_enable=YES
anon_root=/opt/ftp # Define anonymous user root directory
local_enable=YES
write_enable=YES
local_umask=022
anon_umask=022
anon_upload_enable=YES
anon_mkdir_write_enable=YES
anon_other_write_enable=YES
anon_world_readable_only=YES
connect_from_port_20=YES
no_anon_password=YES
chroot_local_user=YES
allow_writeable_chroot=YES# mkdir -p /opt/ftp/pub // Create anonymous user root directory
# chmod 777 /srv/ftp/pub // Be careful , At this time, you cannot directly grant write permission to anon_root The root directory of the definition , If the root directory is set to 777( That is, you have write permission ), Login Report ”500 OOPS: vsftpd: refusing to run with writable root inside chroot()“ Error of , Because from vsftpd2.3.5 After the version ,vsftpd Enhanced security checks , If the user is restricted to his home directory , Then the user's home directory can no longer have write permission ! If you find that you have write permission , Will report the error . So here's another one pub Catalog , take pub Directory gives write permission , Realize anonymous user creation, file uploading and other write operations
# systemctl restart vsftpd
2、 Local user mode , You need a user name and password to log in , Deny anonymous login
# sudo -i // Desktop rights
# mkdir -p /opt/ftp/lisi/pub // Create a lisi Of ftp User root
# useradd lisi -s /sbin/nologin -d /opt/ftp/lisi // For system safety , To create ftp user lisi Set to nologin, It is not allowed to use lisi Users log in to the operating system directly , then -d Parameter is change lisi The user's home directory is specified ftp root directory
# vim /etc/pam.d/vsftpd // Need to be commented out PAM The module of vsftp Over authentication of login ( The last line ), otherwise lisi The user is nologin You will not be able to log in ftp

# passwd lisi // Set the password
# vim /etc/vsftpd.conf
listen=YES
listen_ipv6=NO
anonymous_enable=NO # Prohibit anonymous users from accessing
local_enable=YES
chroot_local_user=YES
local_root=/opt/ftp/lisi
local_enable=YES
write_enable=YES
local_umask=022
connect_from_port_20=YES
allow_writeable_chroot=YES# chmod 777 /opt/ftp/lisi/pub
# systemctl restart vsftpd
【 notes 】: If the client uses windows Of filezilla There is an error when accessing the Chinese folder , You can set the encoding format to UTF8, The operation mode is as follows :
use FileZilla Give yourself the FTP When transferring documents , Always prompt “Failed to convert command to 8 bit charset” error , This is a FileZilla Unable to correctly judge the character set encoding , The solution is as follows :
1、 open FileZilla Of “ Site manager ”-“ Character set ” page
2、 choice “ Use a custom character set ”
3、 Fill in your own code FTP The character set of the server , It is also mandatory to use UTF8 Format
边栏推荐
- Dichotomy search (C language)
- For programmers, if it hurts the most...
- [Galaxy Kirin V10] [server] system startup failed
- Huge number (C language)
- PHP programming language (1) - operators
- Latex learning insertion number - list of filled dots, bars, numbers
- [Galaxy Kirin V10] [server] soft RAID configuration
- Ruby时间格式转换strftime毫秒匹配格式
- Const's constant member function after the function; Form, characteristics and use of inline function
- Sword finger offer 31 Stack push in and pop-up sequence
猜你喜欢

How do microservices aggregate API documents? This wave of show~

The bamboo shadow sweeps the steps, the dust does not move, and the moon passes through the marsh without trace -- in-depth understanding of the pointer

今日睡眠质量记录78分

Basic principle of servlet and application of common API methods

转载:等比数列的求和公式,及其推导过程

The time difference between the past time and the present time of uniapp processing, such as just, a few minutes ago, a few hours ago, a few months ago
![[Galaxy Kirin V10] [desktop and server] FRP intranet penetration](/img/54/7d1b8b7b8226e2820635dd04b92d1c.jpg)
[Galaxy Kirin V10] [desktop and server] FRP intranet penetration

20 minutes to learn what XML is_ XML learning notes_ What is an XML file_ Basic grammatical rules_ How to parse

Introduction to tree and binary tree

Number of relationship models
随机推荐
Use C to extract all text in PDF files (support.Net core)
leetcode729. My schedule 1
Network connection (III) functions and similarities and differences of hubs, switches and routers, routing tables and tables in switches, why do you need address translation and packet filtering?
Press the button wizard to learn how to fight monsters - identify the map, run the map, enter the gang and identify NPC
Safety reinforcement learning based on linear function approximation safe RL with linear function approximation translation 1
2020-03-28
Write a program to define an array with 10 int elements, and take its position in the array as the initial value of each element.
Rhcsa operation
Work order management system OTRs
有老师知道 继承RichSourceFunction自定义读mysql怎么做增量吗?
Static comprehensive experiment ---hcip1
RHCE - day one
Servlet基本原理与常见API方法的应用
Vs201 solution to failure to open source file HPP (or link library file)
按键精灵打怪学习-识别所在地图、跑图、进入帮派识别NPC
Collection of practical string functions
Rhcsa day 10 operation
Basic data types of MySQL
[Galaxy Kirin V10] [server] KVM create Bridge
Write a program to judge whether the elements contained in a vector < int> container are 9.20: exactly the same as those in a list < int> container.