In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/02 Report--
This article mainly introduces "how to understand vsftpd transplantation". In the daily operation, I believe many people have doubts about how to understand vsftpd transplantation. The editor consulted all kinds of materials and sorted out simple and easy-to-use operation methods. I hope it will be helpful for you to answer the doubts about "how to understand vsftpd transplantation"! Next, please follow the editor to study!
Vsftpd Migration instruction
Everyone must have doubts about vsftpd transplantation. This article is a little bit of my experience for your reference:
1 download
Download the latest version of the source package at https://security.appspot.com/vsftpd.html#download. This article takes the vsftpd-3.0.2.tar.gz version as an example.
If the above download address is not accessible, you can also download vsftpd-3.0.2.tar.gz locally.
2 decompression
$mkdir ~ / vsftpd
$cp vsftpd-3.0.2.tar.gz ~ / vsftpd
$cd ~ / vsftpd
$tar xzf vsftpd-3.0.2.tar.gz
$cd vsftpd-3.0.2/
The "~" in the command indicates the current user directory, for example, the user working on the Linux host is: veryarm, then the "~" in the command represents the path: / home/veryarm/ directory.
3 configuration
$export PATH=$PATH:/usr/local/arm-2010q1/bin # cross-compilation tool path to add system environment variables!
$vi Makefile
After opening the Makefile file, modify the value of the CC variable as follows:
CC = arm-none-linux-gnueabi-gcc
Among them
CC: specify cross-compilation tools, such as arm-none-linux-gnueabi-gcc, arm-linux-gnueabihf-gcc, arm-linux-gcc, etc., which correspond to the cross-compilation tools used on the target board.
4 compilation
$make # compilation, if the computer is a multi-core CPU, such as quad-core, using make-J4 can improve the compilation speed
After make, two files are generated in the current directory: vsftpd and vsftpd.conf, which we want to use.
5 copy files
Copy the generated vsftpd to the target board / usr/sbin directory, vsftpd.conf to the target board / etc directory, and add vsftpd as executable:
$cp vsftpd / usr/sbin # copy the execution file to the target board
$cp vsftpd.conf / etc/ # copy the configuration file to the target board
$chmod + x / usr/sbin/vsftpd # add executable permissions
6 configuration
Use vi to open the vsftpd.conf file, and configure it as follows to achieve normal upload and download:
Anonymous_enable=NO # the default YES is changed to NO
Local_enable=YES # removes the preceding # comment symbol
Write_enable=YES # removes the preceding # comment symbol
Anon_upload_enable=NO # remove the preceding # comment symbol and change YES to NO
Anon_mkdir_write_enable=NO # remove the preceding # comment symbol and change YES to NO
Anon_other_write_enable=NO # removes the previous # comment symbol and changes YES to NO (it may not be in this new version)
Chroot_local_user=YES # removes the previous # comment symbol and changes the line to restrict FTP users to the home directory
Chroot_list_enable=YES
Chroot_list_file=/etc/vsftpd.chroot_list
Allow_writeable_chroot=YES # add this line to the end of the file
You will need to restrict users to / etc/vsftpd.chroot_list, one user per line.
Then use the command configuration on the target version:
$adduser nobody # vsftpd default configuration requires
$mkdir / usr/share/empty # vsftpd default configuration requires
Create a local user and set the password:
$adduser ftpadmin
Changing password for ftpadmin
New password:
Retype password:
Password for ftpadmin changed by root
7 Open vsftp
Once configured, open vsftp on the target board, and command:
$vsftpd &
Notice that there is another &. If you want vsftpd to boot, you can add this command to the end of the / etc/profile or rc.local file.
8 client test
Configure the target board IP, so that it can communicate with the computer ping, and then open the client on the computer, enter the target board IP, user name, password, you can connect.
At this point, the study on "how to understand vsftpd transplantation" is over. I hope to be able to solve your doubts. The collocation of theory and practice can better help you learn, go and try it! If you want to continue to learn more related knowledge, please continue to follow the website, the editor will continue to work hard to bring you more practical articles!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.