Build an FTP server on a Linux virtual machine

Source: Internet
Author: User
Tags anonymous

Build an FTP server on a Linux virtual machine

Experiment Introduction: This article mainly introduced in the virtual machine's Linux system to build the FTP server, and finally can in another Win7 virtual machine to be able to upload and download the file normally, and establishes the access user's black and white list, as well as the virtual account function.

1, first open the Linux virtual machine, configure the IP address, this article's Linux IP address is 192.168.1.16/24, directly through the system CD-ROM with the VSFTPD package installed. (If the disc image file is already mounted)

2, after successful installation, open the VSFTPD service, on the Win7 virtual machine (IP address 192.168.1.100) can access the Linux FTP server, view the system TCP 21 port open. You can connect to a Linux virtual machine via FTP 192.168.1.16 directly in the Win7 CMD window for anonymous access (to turn off the Linux firewall and enhance security features).

3, in the Win7, we are in the root directory of the C-disk FTP server, where anonymous login to the corresponding Linux directory is the/VAR/FTP directory, for example, we create a aaa.txt file in this directory, you can download the file to the root of the C drive.

4, anonymous login can also upload files, but need to modify the configuration file and Pub folder permissions, note that you cannot modify the permissions of the FTP folder, or remote will automatically close the connection. As shown in. You can also use the normal user login in Linux, but there are security issues, when using ordinary user login, you can freely switch directories, there is a security risk, so in the configuration file to add Chroot_local_user=yes to imprison local users, can only be limited to the user home directory activities. When you log in with a normal user, the upload file is uploaded to the normal user's home directory.


5, the following description of the black and white list configuration, such as implementation Zhangsan can log on, Lisi unable to log in.


6, the following is introduced under the Zhangsan user, create two virtual accounts of Tom and Lisa. The main steps are in the following.

Build an FTP server on a Linux virtual machine

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.