VSFTPD installation in LINUX

Source: Internet
Author: User

VSFTPD

Shorthand: VSFTPD is very secure FTP daemon abbreviation, is a completely free, open source code FTP server Software

Features: VSFTPD is the most respected FTP server program in Linux distribution, small and light, safe and easy to use, support for virtual users,

Supports features such as bandwidth throttling

Installation environment: CentOS 6.8.64-bit

VSFTPD version:

vsftpd-2.2.2-21.el6.x86_64

Steps to install VSFTPD

installation command:

1. Yum-y Install VSFTPD

Note: Execute with sudo permission (depending on the installation environment)

rpm-qa| grep vsftpd can use this command to check if VSFTPD is installed.

Default installation path/etc/vsftpd/vsftpd.conf

2. Create a virtual user

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

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

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

D. Reset ftpuser Password: passwd ftpuser

Note: Whether to use sudo permissions according to the actual environment

Actual combat record

Create a folder

Root directory: CD/

Create folder: sudo mkdir ftpfile

To the folder you created: CD Ftpfilee

View: LL view usage of current folder

Add User: sudo useradd (user name: Ftpuser) ftpuser-d/ftpdfile/(set no login rights)-s/sbin/nologin

Go back to the root directory CD:

Query whether the user created the success ll

View information for adding new users ll | grep ftpuser (user name)

Modify user's password: sudo passwd (username)

Create a index.html page in Ftpfile: sudo vim index.html

Content: Ftpfile

/fepfile (Press ESC at Press Shfit in input: Wq in Enter)

Configuration of the 3.FTP server

A.cd/etc/vsftpd

B.sudo Vim Chroot_list

C. Add the virtual user you just added to the configuration file, followed by the reference

D.wq Save exit

E.sudo Vim/etc/selinux/config modified to selinux=disabled

F.wq Save exit

Note: If a validation encounters 550 access denied, execute sudo setsebool-p ftp_home_dir 1

Restart Linux Server execute reboot command

Actual combat record

Installation path of the query software: Whereis (software name)

Whereis vsftpd

Configure the FTP server to point to the folder that we created in the root directory and configure the user to the FTP server

sudo vim/etc/vsftpd/vsftpd.config

will open a file to find the Bbanner node:

Bbanner: The Welcome message pops up when you visit the FTPD server

4. Configuration of the firewall

A.sudo Vim/etc/sysconfig/iptables

B.-A input-p TCP--dport 61001:62000-j ACCEPT

-A output-p TCP--sport 61001:62000-j aceept

-A input-p TCP--dport 20-j ACCEPT

-A output-p TCP--sport 20-j aceept

-A input-p TCP--dport 21-j ACCEPT

-A output-p TCP--sport 21-j aceept

The above configuration is set to the firewall

Wq Save Settings exit

sudo service iptables Restart Restart firewall services

6. Execute: sudo service vsftpd restart restart Firewall command

Just make sure the starting vsftpd is OK

7. Open Browser access: ftp://server IP

Common commands for 8.VSFTPD:

Start: sudo service VSTFPD start

Off: sudo servcie vsftpd stop

Restart: sudo service vsftpd restart

Summary:

Install VSFTPD under Linux to install VSFTPD server, create virtual user, configure, firewall settings, verify

VSFTPD installation 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.