Vsftpd configuration Manual

Source: Internet
Author: User
Vsftpd configuration manual-Linux Enterprise Application-Linux server application information. See the following for details. 0 about this document
1 VSFTPD Overview
2. Install VSFTPD
Installation of 2.1 rh99 + vsftpd-1.1.3-8.i386.rpm package
2.2 vsftpd-1.2.0.tar.gz Installation
3. VSFTPD file structure
4. Start and Stop VSFTPD
5 VSFTPD setting options
5.1 connection options
5.1.1 listener address and control port
5.1.2 ftp mode and data port
5.1.3 ASCII mode
5.2 performance and load control
5.2.1 timeout options
5.2.2 load control
5.3 user options
5.3.1 Anonymous Users
5.3.2 Local User
5.3.3 virtual user
5.4 security measures
5.4.1 User Logon Control
5.4.2 Directory Access Control
5.4.3 File Operation Control
5.4.4 New File Permission settings
5.5 prompt information
5.6 Log Settings
5.7 Other settings
6. VSFTPD Application
6.1 allow anonymous users to upload files
6.2 restrict users to their directories
6.3 configure a high-security anonymous FTP Server
6.4 IP address-based virtual FTP Server
6.5 virtual user configuration
6.5.1 introduction to virtual users of VSFTPD
6.5.2 User Creation and directory settings
6.5.3 Configuration File Settings
6.5.3.1 Basic settings
6.5.3.2 permission settings
6.5.3.3 other virtual user configurations
6.5.3.4 virtual user personal directory settings
6.5.4 MySQL saves virtual users

-------------------------------------------

0. About this document

This document is a personal study. Allows you to read, extract, and reference data. You are welcome to point out the mistakes. The content of this document mainly comes from VSFTPD's own documents, personal learning experiences, and network materials. It is normal if there are similar documents ).

This document is based on RedHat Linux 9 and VSFTPD-1.1.3-8. If there are different versions, there is a special text description.

1. VSFTPD Overview

Which FTP server is the safest? In UNIX and Linux, VSFTP (Very Secure FTP Daemon, a Very Secure FTP Server) is first introduced ). As the name suggests, the starting point of VSFTPD design is security. At the same time, with the continuous upgrade of the version, VSFTPD has made great progress in performance and stability. Large websites such as RedHat, SUSE, Debian, GNU, GNOME, and KDE all use VSFTPD as their FTP servers. You can go to http://vsftpd.beasts.org/to understand the latest situation.

2. Install VSFTPD

2.1. Install the rhd9+ vsftpd-. 1.1.3-8. i386.rpm package

VSFTPD is easy to install. In rh93. execute "Main Menu"-"System Settings"-"Add/Remove Applications"-select FTP server-"Update" on the graphic interface ", you can also run the following command on the Character interface to complete the installation.
Rpm-ivh vsftpd-1.1.3-8.i386.rpm

2.2、vsftpd-1.2.0.tar.gz Installation

(1) Prerequisites

The "nobody" user is required in the default VSFTPD configuration. Add this user to the system. If the user already exists, the useradd command prompts accordingly.
[Root @ hpe45 root] # useradd nobody
Useradd: user nobody exists

The "/usr/share/empty" directory is required in the default VSFTPD configuration. In the system, if the directory already exists, the mkdir command prompts accordingly.
[Root @ hpe45 root] # mkdir/usr/share/empty/
Mkdir: cannot create directory '/usr/share/empty': File exists

When VSFTPD provides anonymous FTP services, you need an "ftp" user and a valid anonymous directory.
[Root @ hpe45 root] # mkdir/var/ftp/
[Root @ hpe45 root] # useradd-d/var/ftp
The subsequent operations are useful for the existence of ftp users.
[Root @ hpe45 root] # chown root. root/var/ftp
[Root @ hpe45 root] # chmod og-w/var/ftp

(2) Compile VSFTPD

Download the file from the official site to the/root directory and execute the following command:
[Root @ hpe45 root] # tar zxvf vsftpd-1.2.0.tar.gz
[Root @ hpe45 root] # cd vsftpd-1.2.0
[Root @ hpe45 vsftpd-1.2.0] # make

(3) install the compiled VSFTPD

Run "make install" to copy the compiled binary files and manuals to the corresponding directory. You may need to manually perform the following copy on rh93:
# Cp vsftpd/usr/local/sbin/vsftpd
[Root @ hpe45 vsftpd-1.2.0] # cp vsftpd. conf.5/usr/local/share/man/man5
[Root @ hpe45 vsftpd-1.2.0] # cp vsftpd.8/usr/local/share/man/man8
Related Article

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.