Install the ftp service in linux

Source: Internet
Author: User
Tags ftp connection
Ftp and ssh are a bit like & amp; 20284;. ssh is mainly used to operate commands on remote servers, but ftp focuses on file transmission. it is relatively simple to install ftp on linux, I will share with you my experiences and experiences in installing and using ftp on ubuntu 1. installing ftpubuntu

Ftp and ssh are similar. ssh is mainly used to operate commands on remote servers, but ftp focuses on file transmission. it is relatively simple to install ftp on linux, I will share with you my experiences and experiences in installing and using ftp on ubuntu.

1. install ftp

Ubuntu is easy to install ftp directly using sudo apt-get install vsftpd, and then press Enter all the way to OK, as shown below:

2. edit/etc/vsftpd. conf as an administrator.

You only need to modify these items.

(1) listen = YES

(2) local_enable = YES

(3) anonymous_enable = NO (you can change it to YES if you are willing to log on anonymously)

(4) write_enable = YES

You do not need to modify the settings elsewhere. The second option means to allow local ftp connection. The fourth option means to enable write operations. if you do not modify the settings, you cannot perform operations on the ftp.

3. add users and user groups

(1) create a group

(2) create an ftp user

4. create an ftp directory and specify it to the corresponding user.

The command used to specify a folder to a user is the sudo usermod-d Directory username.

5. folder authorization

This step of operation is also very important. you have specified a directory for the user, but now the user has no operation permissions, and ftp is basically not available.

If you think the 777 permission is too high, you can change it to 755 or another type.

6. use 8uftp to connect to ftp

After the upload is successful, check whether the file has been uploaded on linux.

So far, ftp has been successfully installed and can be used.

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.