Ubuntu14.04 install ftp and ubuntu14.04ftp on the server

Source: Internet
Author: User

Ubuntu14.04 install ftp and ubuntu14.04ftp on the server

Install ftp in Ubuntu

1. After logging on to the server remotely, enter sudo apt-get update and press Enter. If you do not run this command and directly install vsftpd, some software packages may not be downloaded.

2. Enter sudo apt-get install vsftpd for installation.

3. Check whether ftp is successfully installed. If sudo service vsftpd restart is used to restart ftp service, the installation is successful.

4. Create an ftp folder in sudo mkdir/home/ftp as the ftp directory

5. Add sudo useradd-d/home/ftp-s/bin/bash ftp to add an ftp User Name

6. Set the sudo passwd ftp password twice.

7. sudo Vi/etc/vsftpd. conf edit the fpt configuration file

8. Add userlist_deny = NO userlist_enable = YES userlist_file =/etc/allowed_users after the configuration file to specify a file, which contains users who can log on to ftp.

9. Edit The sudo vi/etc/allowed_users file and add the ftp user name set in step 1 to the file.

10. Edit The sudo vi/etc/ftpusers file and check whether there are users set in it. Users in this file cannot access ftp

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.