FTP Server installed in Linux

Source: Internet
Author: User

1. Installation

Execute yum-y Install VSFTPD

2. Check if VSFTPD:RMP-QA is installed | grep vsftpd Default configuration file/ect/vsftpd/vsftpd.conf

3. Create a virtual user

A. Choose to create an FTP folder under the root or user directory: mkdir ftpfile-such as:/ftpfile

B. Adding an anonymous user: Useradd ftpuser-d/ftpfile-s/sbin/nologin

C. Modify Ftpfile permissions: Chown-r ftpuser.ftpuser/ftpfile

d. Reset ftpuser Password: passwd ftpuser (set to 123456 in the video screen)

4. Configuration

A.cd/ect/vsftpd

B. sudo vim chroot_list

C. Add the newly added virtual user to the configuration file, subsequent references

D.:wq Save exit

E. sudo vim/ect/selinux/config modified to selinux=disabled

F. Wq Save exit

-------If you encounter a 550 denial of access execution

sudo setsebool-p ftp_home_dir 1

Restart the Linux server and execute the reboot command

G.sudo vim/ect/vsftpd/vsftpd.conf

5. Configuration of the firewall:

A.-a input-p-tcp--dport 61001:62000-j ACCEPT

B.-a output-p TCP--sport 61001:62000-j ACCEPT

C.-A input-p-tcp--dport 20-j ACCEPT

D.-a output-p TCP--sport 20-j ACCEPT

E.-a input-p-tcp--dport 21-j ACCEPT

F.-a output-p TCP--sport 21-j ACCEPT

FTP Server installed 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.