Using tuserver to build a lab Ftp Server

Source: Internet
Author: User
The Ftp server is used for file management and sharing. The purpose of installation is to provide lab resources. Anonymous Users have the upload and download permissions. Assume that the server name labserver1.UbuntuServer is used to install the ftp service vsftpd $ sudoapt-getinstallvsftpd // vsftp (VerySecureFTP ).

The Ftp server is used for file management and sharing. The purpose of installation is to provide lab resources. Anonymous Users have the upload and download permissions. Assume that the server name is labserver.

1. Install the ftp service vsftpd on Ubuntu Server

$ Sudo apt-get install vsftpd // vsftp (Very Secure FTP) is a Secure, fast, and stable FTP server in Unix/Linux.

In this case, you can use ftp: // labserver to enter the ftp space, but the content is blank. Currently, you only have the download permission. The folder created after vsftpd is installed is in/srv/ftp/, which is the space shared by ftp.

2. modify the configuration file. The vsfptd. conf file can be used to modify the relevant permissions. For lab purposes, the permission is granted to anonymous users: Anonymous Users have the permission to upload, download, and create folders.

$ Sudo vi/etc/vsftpd. conf

Focus on the following settings:

Anonymous_enable = YES // enable Anonymous User Login

Local_enable = YES // Allow Local Account Login

Write_enable = YES // enable the write permission. Set the permissions as follows:

Anon_upload_enable = YES // enable the anonymous upload permission

Anon_mkdir_write_enable = YES // enable Anonymous Folder creation

3. Modify the folder permissions of the ftp server space. Assume that the/srv/ftp directory contains two folders: ApplicationTools and Entertainments. The authorization method is as follows:

$ Sudo chmod 755/srv/ftp // read the ftp Space

$ Sudo chmod 777-R/srv/ftp/ApplicationTools // Read and Write Permissions

$ Sudo chmod 777-R/srv/ftp/Entertainments // Read and Write Permissions

4. Restart the ftp service and log on to labserver anonymously using the ftp software.

$ Sudo/etc/init. d/vsftpd restart

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.