Ways to quickly configure VSFTP

Source: Internet
Author: User
Tags anonymous ftp log mkdir ftp client iptables

Quick Configuration Vsftp

Preface, Vsftp is a fairly secure FTP server, and VSFTP becomes the standard FTP server for RH8.0 and 9.0.

This paper uses experimental method to quickly configure Vsftp.

[Experimental purposes]

1. Configure an FTP service that allows anonymous users to download.

2. Configure an FTP service that allows anonymous users to upload.

[Experimental requirements]

A RH8.0 machine, ip:192.168.0.1. If 9.0, the configuration file is in/etc/vsftpd/vsftpd.conf and VSFTPD

Packages are integrated ANONFTP packages, and are configured in the same way.

[Experimental steps]

1. Configure an FTP service that allows anonymous users to download.

1) Close iptables.

# Service Iptables Stop

# chkconfig Iptables off

2 Install package.

Have you checked the following software packages?

xinetd

Vsftpd

Anonftp

What is lacking, what to put.

3) Start vsftp service.

# Chkconfig VSFTPD on

# Service XINETD Restart

Note: If RH9.0, use service vsftpd start.

4) Touch/var/ftp/pub/iamvsftpserver

5 FTP client login, such as: Anonymous landing with LFTP

# lftp 192.168.0.1

Note: Can I download/pub/iamvsftpserver?

2. Configure an FTP service that allows anonymous users to upload.

1 Create an upload directory in/var/ftp/and modify the permissions.

# mkdir/var/ftp/incoming

#chown root.ftp/var/ftp/incoming

#chmod 730/var/ftp/incoming

2) Edit/var/vsftpd.conf. (Note: rh9.0 is/var/vsftpd/vsftpd.conf)

Find # Anon_upload_enable=yes below, add the following four lines:

Anon_upload_enable=yes

Chown_uploads=yes

Chown_username=daemon

anon_umask=077

And make sure the Anonymous_enabled=yes is valid.

3 Login with FTP client software 192.168.0.1. Can you upload it to the incoming directory?

4) Observe the contents of/var/log/vsftpd.log.

[Experimental summary]

This article does not explain the contents of the configuration file, and most of the default configuration, if you want to understand the

The meaning of the configuration, refer to the note after the # number above.

[Digression]

Since Vsftp's access directory is in/var/ftp/, does it take all the things that are available to download the full CP to/var/ftp/pub

Down? No need! Let's say you have a catalogue under/data called/movie, and now we're going to give you this catalogue.

Download. The first step, # Mkdir/var/ftp/pub/movie. Step Two, Mount, # Mount-o Ro–bind

/database/movie/var/ftp/pub/movie. Is it easy to provide downloads now? Note: Provide the downloaded directory

Permission settings.

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.