In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article introduces the knowledge of "how to build FTP Services under Linux". Many people will encounter this dilemma in the operation of actual cases. Next, let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!
For users, how to build their own FTP service is a basic application. But for beginners, what is FTP? It is the abbreviation of File transfer Protocol (File Transfer Protocol). FTP is used to transfer files between computers over a network. Transfer files between computer accounts through FTP, transfer files between accounts and desktop computers, or access online software archiving.
However, it is important to note that most FTP sites are highly utilized and require multiple reconnections in order to connect. FTP addresses are similar to HTTP addresses, except that FTP addresses use the ftp:// prefix instead of http://.
With an understanding of FTP services, what is a FTP server? Computers with FTP addresses are dedicated to receiving FTP connection requests. A computer dedicated to receiving FTP connection requests is a FTP server or FTP site.
Here VSFTPD is used as a ftp service by building one for file sharing. VSFTPD is a self-proclaimed most secure FTP server-side software. In fact, the construction of the software bypassed the loopholes in the FTP protocol. However, for some people, there are more secure ways to manage and transfer files, such as SFTP (using OpenSSH). The FTP protocol is very useful and reliable for sharing insensitive data.
Using rpm to install VSFTPD, you can quickly install VSFTPD in the command line interface using the following command:
Dnf-y install vsftpd
Using deb to install VSFTPD, you can quickly install VSFTPD in the command line interface using the following command:
Sudo apt-get install vsftpd
To install VSFTPD in Arch, you can quickly install VSFTPD in the command line interface using the following command:
Sudo pacman-S vsftpd
Configure the FTP service
Most of the VSFTPD configuration items are well documented in the / etc/vsftpd.conf configuration file, and only some important options that may be modified are described here. Use the man page to view all available options and basic documentation:
Man vsftpd.conf
According to file system level standards, FTP shared files are located in the / srv/ftp directory by default.
Allow upload: in order to allow ftp users to modify the contents of the file system, such as uploading files, the "write_enable" flag must be set to YES.
Write_enable=YES
Allow local (system) users to log in, and in order to allow users recorded in the file / etc/passwd to log on to the ftp service, the "local_enable" flag must be set to YES.
Local_enable=YES
The following configuration controls whether anonymous users are allowed to log in:
Root directory limit (Chroot Jail)
Sometimes we need to set up the chroot environment to prevent users from leaving their home (home) directory. Add / modify the following configuration to enable the root directory limit (Chroot Jail) in the configuration file:
Chroot_list_enable=YES
Chroot_list_file=/etc/vsftpd.chroot_list
The "chroot_list_file" variable specifies the files / directories contained in the root directory restriction (LCTT translation: that is, users can only access these files / directories)
* you must restart the ftp service and enter the following command on the command line:
Sudo systemctl restart vsftpd
The ftp service has been built and started.
This is the end of the content of "how to build FTP Services under Linux". Thank you for reading. If you want to know more about the industry, you can follow the website, the editor will output more high-quality practical articles for you!
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.