Ubuntu9.04 simple FTP Creation Method

Source: Internet
Author: User
Because I don't want to use WIN any more, it is not convenient to share files with other students, so I want to create an FTP In Ubuntu. After a burst of forums and google searches, we finally found the correct method (vsftpd, Ubuntu9.04), at least to ensure that users in the surrounding LAN can access it. As for the configuration file, the content is relatively small. It's okay for me to use it anyway ~ I don't know if it will be weak. 1. Install vsftpd directly from the source. easy code: sudoapt-getinstallvsftp

Because I don't want to use WIN any more, it is not convenient to share files with other students, so I want to create an FTP In Ubuntu. After a forum and google search, we finally found the correct method (vsftpd, Ubuntu 9.04), at least to ensure that users in the surrounding LAN can access it. As for the configuration file, the content is relatively small. It's okay for me to use it anyway ~ I wonder if it will be weak.

1. Install vsftpd

Install from the source directly, easy

Code:

Sudo apt-get install vsftpd

After the installation is complete, an ftp account may be automatically generated, and a folder will be added to/home.

If the user is not generated, You can manually generate the user:

Code:

Sudo useradd-m ftp

Sudo passwd ftp

You must change the permissions after you have an ftp account.

Code:

Sudo chmod 777/home/ftp

In this directory, I create a folder to save the content to be shared.

2. Configuration File

Modify it through sudo gedit/etc/vsftpd. conf.

The configuration file is simple as follows:

Code:

# Start in standalone Mode

Listen = YES

# Four clients can be connected at the same time. Each IP Address can have up to five processes.

Max_clients = 200

Max_per_ip = 4

# Anonymous users are not allowed to access and local (system) Users are allowed to log on

Anonymous_enable = NO

Local_enable = YES

Write_enable = NO

# Use port 20 for data transmission

Connect_from_port_20 = YES

# Generate logs

Xferlog_enable = YES

# Specify logon to the directory

Local_root =/home/ftp

In this way, on the computer in the same LAN, use my IP address, use the "ftp" account and the corresponding password to log on. The password is specified in the passwd statement in step 1.

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

By the way, restart the ftp service after changing the configuration.

Code:

Sudo/etc/init. d/vsftpd restart

In addition, the command to enable or disable the service

Code:

Sudo/etc/init. d/vsftpd start

Sudo/etc/init. d/vsftpd stop

In this way, on the computer in the same LAN, use my IP address, use the Account "ftp" and the corresponding password to log on. The password is specified in the passwd statement in step 1.

Www.linuxidc.com

This is the end. Please make a brick !!

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.