The construction of FTP server in Linux

Source: Internet
Author: User

Vmware12 installed on the CentOs6.8, the ultimate realization of WINDOWS10 on the physical machine can normally access the FTP server on CentOS.

First, see if there is an FTP-related installation package installed.

# Rpm-qa | The installation package for grep vsftpd//ftp is vsftpd

See that there are no related packages installed on my system, so install the package first.

# yum-y Install VSFTPD//here if you do not configure the Yum source, you can install it directly in RPM.

Check to see if the installation was successful

Second, start the service and set the boot from start.

# service VSFTPD Start//Startup services

# chkconfig--level vsftpd on//set self-start

# chkconfig--list vsftpd//See if Setup is successful

Third, configuration vsftpd file

The FTP server has three main configuration files, all located in the/ETC/VSFTPD directory:

Ftpusers//used to specify which users cannot access the FTP server

User_list//Whether the user in this file can log on to the server, depending on the userlist_enable and Userlist_deny options in the vsftpd.conf file.

VSFTPD.CONF//ftp Server's main configuration file

Iv. Anonymous user access

Open vsftpd.conf

# vi/etc/vsftpd/vsftp.conf

Set these two options to Yes:anon_upload_enable=yes and Anon_mkdir_write_enable=yes (which is usually the default already, remove the previous ' # ')

This enables anonymous users to upload and download files.

  

V. Access by non-anonymous users

1. Modify the configuration file

# vi/etc/vsftpd/vsftp.conf

To turn off anonymous user access first: anon_upload_enable=no

Added at the end of the configuration file: Userlist_enable=yes, Userlist_file=/etc/vsftpd/vsftpd.user_list, Userlist_deny=no

  

2. Create a user

  

3. Here first Test, directly using FTP1 login, found that is not logged on.

  

4, put the user ftp into the/etc/vsftpd/vsftpd.user_list file.

# vi/etc/vsftpd/vsftpd.user_list

Write FTP1 (one line on behalf of a user) in the file, then save the exit and reload the service (# Service VSFTPD Reload).

  

Once again, with FTP1 users, you can log on to the FTP server.

  

The construction of FTP server in 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.