Linux Learning: FTP Service Setup

Source: Internet
Author: User
Tags filezilla

First, install VSFTPD components

after installation, there is a /etc/vsftpd/vsftpd.conf file, which is the vsftp configuration file.

[Email protected] conf]# yum-y install VSFTPD

650) this.width=650; "src=" Https://s1.51cto.com/wyfs02/M00/95/A8/wKiom1kYNbOyqURFAAC-Bqxd71M722.jpg "title=" 111. JPG "alt=" wkiom1kynboyqurfaac-bqxd71m722.jpg "/>

650) this.width=650; "src=" Https://s2.51cto.com/wyfs02/M01/95/A8/wKioL1kYNfnTti5vAAAdFzrDKyw444.jpg "title=" 11. JPG "alt=" wkiol1kynfntti5vaaadfzrdkyw444.jpg "/>

Second, add an FTP user

This user is used to log on to the FTP server.

[Email protected] vsftpd]# Useradd Ftpuser

Such a user built, you can use this login, remember to use ordinary login do not use Anonymous. The default path after logging in is /home/ftpuser.

Third, add password to FTP user

[Email protected] vsftpd]# passwd Ftpuser

650) this.width=650; "src=" Https://s1.51cto.com/wyfs02/M01/95/A8/wKioL1kYN2fC-O2PAAAb7jwOVCQ678.jpg "title=" 111. JPG "alt=" wkiol1kyn2fc-o2paaab7jwovcq678.jpg "/>

Iv. Modification of SELinux

Outside the network can be accessed up, but found unable to return to the directory (using FTP active mode, passive mode is still inaccessible), also cannot upload, because selinux mischief.

FIX: Modify selinux

4.1 Viewing status

[Email protected] vsftpd]# Getsebool-a | grep FTP

650) this.width=650; "src=" Https://s3.51cto.com/wyfs02/M00/95/A9/wKiom1kYOEvgyGTaAAAjI3D2yL4033.jpg "title=" 111. JPG "alt=" wkiom1kyoevgygtaaaaji3d2yl4033.jpg "/>

execute the above command, and then return the result to see that both lines are off, representing, no open extranet access

Execute the following command to open:

[[email protected] vsftpd]# setsebool-p allow_ftpd_full_access on[[email protected] vsftpd]# setsebool-p Ftp_home_dir on

Five, close anonymous access

To modify the/etc/vsftpd/vsftpd.conf file:

650) this.width=650; "src=" Https://s1.51cto.com/wyfs02/M01/95/A9/wKioL1kYPFXTqkq7AAA8d1VK1A4756.jpg "title=" 1494760497 (1). jpg "alt=" wkiol1kypfxtqkq7aaa8d1vk1a4756.jpg "/>

Six, turn on the passive mode

the default is on, but to specify a port range, open the/etc/vsftpd/vsftpd.conf file, followed by

pasv_min_port=30000pasv_max_port=30999

indicates that the port range is 30000~30999, this can be changed arbitrarily. To restart the vsftpd, due to the designation of this port range, iptables should also open the corresponding range.


Start:Service vsftpd Restart

650) this.width=650; "src=" Https://s2.51cto.com/wyfs02/M01/95/A9/wKioL1kYPZrzJI_EAAAPG__LJDA424.jpg "title=" 11. JPG "alt=" wkiol1kypzrzji_eaaapg__ljda424.jpg "/>

Seven, boot from the start

[Email protected] vsftpd]# chkconfig vsftpd on

Viii. FileZilla Client Connectivity test

FileZilla Active, Passive mode modification: Menu: Edit → Settings

650) this.width=650; "src=" Https://s4.51cto.com/wyfs02/M00/95/A9/wKiom1kYPkOh7sEVAAC9Je447Ew899.jpg "title=" 1494760995 (1). jpg "alt=" wkiom1kypkoh7sevaac9je447ew899.jpg "/>

650) this.width=650; "src=" Https://s5.51cto.com/wyfs02/M01/95/A9/wKiom1kYPtHh6XD_AAG-WdvyuWs519.jpg "title=" 111. JPG "alt=" wkiom1kypthh6xd_aag-wdvyuws519.jpg "/>

This article is from "I Love Big gold" blog, please be sure to keep this source http://1754966750.blog.51cto.com/7455444/1925603

Linux Learning: FTP Service Setup

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.