Build an FTP server in Ubuntu

Source: Internet
Author: User
Tags ftp client

1. Conditions for installing the FTP server

Computer networking

2. Run the following command:

3. Configure vsftpd. conf

Command: sudo VI/etc/vsftpd. conf

Add the following configuration in the configuration file (vsftpd. conf:

Note that anno_root =/home/toto/FTP must contain the FTP folder, and the folder must have the same permissions as normal files. Cannot be the maximum permission (anonymous users are not allowed to write this directory)

4. Restart the server and reload the/etc/vsftpd. conf configuration file.

Ubuntu12.04 or earlier versions (earlier versions)

Sudo/etc/init. d/vsftpd restart

 

Ubuntu14.04 or earlier versions

Sudo/lib/init/upstart-job vsftpd restart

 

5. Go to your/home/xingwenpeng/FTP directory and create an empty directory for users to upload. This directory is not necessarily the FTP name, also, this directory should not be created by the root user, but by the common user.

Cd ~ /Ftp

Mkdir anonymous directory for users to upload.

Chmod 777 anonymous sets the permission of this directory to the maximum permission.

As follows:

5. Test the upload function. log on to the FTP server and go to the anonymous directory.

Note: Before testing, check whether the network is accessible.

Ftp ip address (the IP address here is not a command, but the FTP directory of the link to be written)

CD Anonymous

6. After Entering the anonymous directory, you can upload the files in your current directory to the anonymous directory on the FTP server.

Upload and download commands

Put uploaded file name

Get download file name

 

7ftp Client

By default, the FTP client is installed on Ubuntu.

8lftp Client

Installation command:

Sudo apt-Get install lftp

 

Lftp is also an FTP client program. It operates in text mode, but is more convenient than graphic interfaces. Lftp supports almost all convenient bash functions, including TAB completion, Bookmark, queue, and background download. The usage is similar to that of FTP. The main execution is as follows:

Example of mput ,:

9. The command for logging out of FPT is:

A: Exit

B: Bye

C: Quit

 

Build an FTP server in Ubuntu

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.