Explanation of how to build a Linux FTP Server

Source: Internet
Author: User

After studying how to build a linux server for a long time, I will introduce how to solve the problem of building a linux FTP server. I have collected some materials and shared them with you, I hope this article will teach you more things.

First, let's take a look at the main configuration file as follows:
/Etc/VSFTPd. conf main configuration file
/Etc/VSFTPd. FTPusers: list of user names that prevent users from accessing the FTP server
/Etc/VSFTPd. userlist controls the list of user names used to access the FTP server.
The userlist_deny parameter determines whether this is allowed or not.

FTP can be divided into two types: Port FTP, that is, normal FTP, and PASVFTP, which are described as follows:

1. Port FTP: this is a common form of FTP. First, a control channel is established. The default value is Port 21, that is, it is established online with Port 21 and commands are issued online. Second, the FTP server will establish a data transmission channel. The default value is 20, that is, it is established online with Port 20, and data transmission is performed through Port 20.

2. pasv ftp is similar to Port FTP. First, a control channel is established. The default value is Port 21, that is, it is established online with Port 21 and commands are issued online. Second, the client will make a data transmission request, including the number of the data transmission Port.

Build a simple linux FTP server platform:

1. Edit the/etc/VSFTPd. conf file.
Anonymous_enable = YES
Local_enable = YES allow local users to access FTP
Write_enable = YES allow write
Local_umask = 022 default permission mask for files created by local users
Xferlog_enable = YES/* if it is started, the upload and download information will be fully recorded as defined in xferlog_file
File. It is enabled by default. */The default value is/var/log/VSFTPd. log.
Connect_from_Port_20 = YES
Xferlog_std_format = YES
If listen = YES/* is enabled, VSFTPd is executed independently. If VSFTPd is executed independently, as shown in figure
The default value of RedHat9 must be enabled. If VSFTPd is included in xinetd, this function must be disabled, for example, redhat8. The default value in RedHat9 is YES. */
Tcp_wrappers = YES

2. Restart the VSFTPd service.
As long as the VSFTPd service is enabled, an FTP with anonymous access is automatically enabled. The default access is the/var/FTP directory.
Restart VSFTP directly. The command is as follows:
[Root @ relay VSFTPd] #/sbin/service VSFTPd restart

3. Client Access
Method 1: FTP: // username: password @ FTPservername Enable User Access
Method 2: FTP: // FTPservername enables Anonymous Access
Method 3: Access in text mode, for example, access in a windows command prompt.
The preceding section describes how to build a linux FTP server.

  1. Analyze the differences between the linux make command and Makefile
  2. Linux script Shell command
  3. Who command for viewing serialization in linux Process
  4. Commands for normal shutdown in linux
  5. Linux FTP server access permission collector

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.