Server Setup FTP

Source: Internet
Author: User

Planning requires the game server to upload and modify files at any time, need to build FTP on the server,

Originally thought to modify a few configuration, open a port problem, did not expect to toss a night, record down.

1 VSFTPD server, if not installed yum-y install VSFTPD

Create a new user account and password for the FTP service

Useradd username

passwd username

2 VSFTPD Related Documents Introduction

Ftpusers is a blacklist that prohibits users from accessing FTP in Files (security considerations)

User_list

"1" userlist_enable=yes when User_list is enabled,

Userlist_deny=yes: User_list is a blacklist , that is, all users appearing on the list will be denied login;

Userlist_deny=no: User_list is a whitelist , that is, only users who appear on the list will be allowed to log in

(Users outside of User_list are denied access), and a special reminder is that when you use the whitelist,

Anonymous users will not be able to log in! Unless you explicitly add a row to the User_list: Anonymous

"2" userlist_enable= for No when user_list, all local users can access the FTP

3 Modifying the configuration of the vsftpd vsftpd.conf

Userlist_enable=yes
Userlist_deny=no
Tcp_wrappers=yes
pasv_min_port=61001
pasv_max_port=62000
Chroot_local_user=yes
Chroot_list_enable=yes
Chroot_list_file=/etc/vsftpd/chroot_list #可返回上一级

After modifying the restart VSFTPD

Modify firewall configuration

-A input-m state--state new-m tcp-p TCP--dport 21-j ACCEPT

-A input-p TCP--dport 61001:62000-j ACCEPT
-A output-p TCP--sport 61001:62000-j ACCEPT

Restarting the firewall

Server Setup FTP

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.