FTP setup under Linux

Source: Internet
Author: User
Tags file transfer protocol

FTP is the abbreviation for file Transfer Protocol (document Transfer Protocol), and Chinese is called "Interfax protocol". Used for two-way transmission of control files on the Internet. At the same time, it is also an application (application). There are different FTP applications based on different operating systems, and all of these applications follow the same protocol to transfer files. In the use of FTP, users often encounter two concepts: "Download" (Download) and "Upload" (Upload).

Generally in a variety of Linux distributions, the default with the FTP software is vsftp, from the various Linux distributions to vsftp recognition can be seen, vsftp should be a good FTP software.

Method/Step
  • 1. Check and install VSFTPD software

    Use the following command #rpm-qa |grep VSFTPD can detect if the VSFTPD software is installed,

    If it is not installed, install it using the Yum command.

  • 2. Start the service

    Using VSFTPD software, mainly includes the following commands:

    Start ftp command #service vsftpd start

    Stop FTP command #service vsftpd stop

    Restart FTP command #service vsftpd restart

  • 3, the VSFTPD configuration

    There are three main FTP configuration files, which are located in the/etc/vsftpd/directory, respectively:

    Ftpusers This file is used to specify that those users cannot access the FTP server.

    User_list the default account that the file uses to indicate that the FTP is not accessible by default

    Vsftpd.conf VSFTPD's master configuration file

  • 4, take the anonymous user as an example, we remove the configuration file vsftpd.conf inside the following

    Anon_upload_enable=yes

    Anon_mkdir_write_enable=yes

    Two previous # numbers, you can complete the configuration of anonymous users, the anonymous user can log in both upload, download files. Remember to restart the service after modifying the configuration file.

  • 5. Creation and use of non-anonymous accounts

    VSFTPD services are associated with system users, such as when we create a system user named Test, the user can log on by default configuration,

  • After logging in to create a folder named "AA" in the page, we can also see the same file in the home directory of the server test user.

Groupadd Test
Useradd-g test-g Root Test
passwd nctest
echo "Test" | passwd Test--stdin

Sed-i ' s/^root$/#root/g '/etc/vsftpd/ftpusers//Remove the limit login for root
Sed-i ' s/^root$/#root/g '/etc/vsftpd/user_list
/ETC/INIT.D/VSFTPD restart

FTP setup under Linux

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.