Build FTP server with VSFTPD under Linux

Source: Internet
Author: User
Tags anonymous empty ftp log mkdir root directory linux

How to use VSFTPD to build FTP server under Linux, what are the characteristics of the FTP server after construction? This article will be described in detail.

VSFTPD is the abbreviation for "very secure FTP daemon", and security is one of its biggest features. VSFTPD is the name of a server running on a UNIX-like operating system that can run on top of systems such as Linux, BSD, Solaris, Hp-unix, and is a completely free, source-coded FTP server software that supports many other FTP Features that are not supported by the server. For example: Very high security requirements, bandwidth constraints, good scalability, can create virtual users, support IPV6, high speed.

This article takes Redhat Linux 9.0 as an example to describe how to install and configure a VSFTPD server.

Installing the server program

Program Download Address: ftp://vsftpd.beasts.org/users/cevans/

1. Prior to installation:

Before installing, we should see if the user "nobody" and Directory "/usr/share/empty" exist, and if there is no need to create this user and directory.

  [root@localhost root]# useradd nobody
  [root@localhost root]# mkdir /usr/share/empty

If you want to allow anonymous access, you also need to create an FTP user and set its home directory to/var/ftp. In Redhat Linux 9.0 These are all set by default, just create a/var/ftp directory.

[root@localhost root]# mkdir /var/ftp

For security purposes, the directory "/var/ftp" should not belong to the user "FTP" and should not have write permissions. Here we make the following settings:

[root@localhost root]# chown root.root /var/ftp
[root@localhost root]# chmod 755 /var/ftp

2. To begin the installation:

Log on to the Linux system as an administrator and copy the vsftpd-2.0.3.tar.gz to the/root directory.

[root@localhost root]# tar xzvf vsftpd-2.0.3.tar.gz
[root@localhost root]# cd vsftpd-2.0.3
[root@localhost vsftpd-2.0.3]# make
[root@localhost vsftpd-2.0.3]# make install

3. Install the following work

Due to the installation of source code, many of the necessary configuration files are not replicated to the system and need to be manually replicated.

To copy a configuration file:

[root@localhost vsftpd-2.0.3]# cp vsftpd.conf /etc

Replication Pam Authentication files: (most users who use VSFTPD have a problem with the source code installation: Anonymous users can log on, and local users cannot log on regardless of their settings, because VSFTPD uses PAM authentication and needs to replicate a local user of authentication files for access.) )

[root@localhost vsftpd-2.0.3]# cp RedHat/vsftpd.pam /etc/pam.d/ftp

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.