当前位置:网站首页>[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
边栏推荐
- Today's sleep quality record 78 points
- 2020-03-28
- Velodyne configuration command
- Huge number (C language)
- Rhcsa - day 13
- 转载:等比数列的求和公式,及其推导过程
- /*Rewrite the program, find the value of the element, and return the iterator 9.13: pointing to the found element. Make sure that the program works correctly when the element you are looking for does
- OSPF comprehensive experiment
- Write a program to judge whether the two arrays are equal, and then write a similar program to compare the two vectors.
- How do microservices aggregate API documents? This wave of show~
猜你喜欢

OSPF comprehensive experiment

Realsense of d435i, d435, d415, t265_ Matching and installation of viewer environment

RHCE day 3
![[200 opencv routines] 218 Multi line italic text watermark](/img/3e/537476405f02f0ebd6496067e81af1.png)
[200 opencv routines] 218 Multi line italic text watermark
![[Galaxy Kirin V10] [server] soft RAID configuration](/img/d5/789387613fafc18f623d0cff45093b.jpg)
[Galaxy Kirin V10] [server] soft RAID configuration

Huge number (C language)

Two way process republication + routing policy

Today's sleep quality record 78 points

【Day2】 convolutional-neural-networks

C language structure to realize simple address book
随机推荐
Write a program that uses pointers to set all elements of an int array to 4.18: 0.
leetcode1-3
Seven examples to understand the storage rules of shaped data on each bit
Three schemes of ZK double machine room
Remove linked list elements
Pod management
Latex arranges single column table pictures in double column format articles
Reprint: summation formula of proportional series and its derivation process
Velodyne configuration command
Use the data to tell you where is the most difficult province for the college entrance examination!
C language structure to realize simple address book
Reasons and solutions for the 8-hour difference in mongodb data date display
[Galaxy Kirin V10] [desktop and server] FRP intranet penetration
Rhcsa - day 13
/*The rewriter outputs the contents of the IA array. It is required that the type defined by typedef cannot be used in the outer loop*/
原生div具有编辑能力
【Day1】 deep-learning-basics
Recursion and divide and conquer strategy
Basic principle of servlet and application of common API methods
【FAQ】华为帐号服务报错 907135701的常见原因总结和解决方法