Procedure for setting up an FTP server in the UbuntuLinux System

Source: Internet
Author: User
Article Title: UbuntuLinux system FTP server creation steps. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.

After implementing the virtual host setting for Multiple Apache users, these users generally choose to use ftp to upload their web content, which requires us to set up FTP services for them.

The FTP server that comes with Ubuntu is vsftpd.

1. Install vsftpd

It is not difficult to install software in Ubuntu. Enter:

Sudo apt-get install vsftpd

If the source is not changed, you may be prompted to use the disc. Just press Enter.

I use the CN99 source. The speed is KB per second. It is fast enough.

After installation, an ftp directory is created under/home. At this time, you can try to access the ftp: // ip address. You can see an ftp space with blank content.

By default, anonymous users can download files, but cannot write or upload files.

2. Set the vsftpd. conf file

Now, we need to make anonymous users inaccessible and enter the user password on linux before they can access the contents in their own directories.

First, find the file for setting vsftpd, which is located in/etc/vsftpd. conf.

Back up this file before modification:

Sudo cp/etc/vsftpd. conf/etc/vsftpd. conf. old

Then you can change the settings:

# Do not allow anonymous users to use

# Anonymous_enable = YES

# Available local users

Local_enable = YES

# Available write operations

Write_enable = YES

# File information in a directory is not required

# Dirmessage_enable = YES

# Add a banner prompt

Ftpd_banner = Hello ~~

# Maximum number of users on the FTP server

Max_clients = 100

# Restrict processes of each IP Address

Max_per_ip = 5

# Maximum transmission rate (B/s)

Local_max_rate = 256000

# Hiding accounts

Hide_ids = YES

Okay. Restart the ftp server to check the effect.

[1] [2] Next page

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.