Install vsftpd in Linux

Source: Internet
Author: User
For convenience, I directly install [root @ localhow.nt] yumlist | grepvsftpd using the yum source that has been set up to view the information of the vsftpd package in yum. RHNsupportwillbedisabledvsftpd

For convenience, I directly use the yum source that has been set up for installation.

[Root @ localhost mnt] # yum list | grep vsftpd ### view vsftpd package information in yum
RHN support will be disabled.
Vsftpd. i386 2.0.5-16. el5_4.1 rhel-debuginfo

Install

[Root @ localhost mnt] # yum install vsftpd-y

[Root @ localhost ~] # Rpm-qa | grep vsftpd ### view installed vsftpd4
Vsftpd-2.0.5-16.el5_4.1

Main files related to the vsftpd service

/Usr/bin/vsftpd main program of the vsftpd service

/Etc/rc. d/init. d/vsftpd startup script

/Etc/vsftpd. conf main configuration file

/Var/ftp anonymous user home directory

Check the default configuration of the vsftpd configuration file.

[Root @ localhost ~] # Cat/etc/vsftpd. conf | grep-v ^ #

Anonymous_enable = YES: whether anonymous users are allowed to log on (yes indicates YES)
Local_enable = YES whether local user logon is allowed
Write_enable = YES whether users are allowed to upload files
Local_umask = 022 UMASK code
Dirmessage_enable = YES whether to allow access to directory information
Xferlog_enable = YES: Set the log file name. The default value is/var/log/vsftpd. log.
Connect_from_port_20 = YES Whether connection through Port 20 is allowed
Xferlog_std_format = YES Whether logs are output in standard format
Listen = YES enable service listening
Pam_service_name = vsftpd: the configuration file for pam authentication, which is in the/etc/pam. d/directory by default.
Userlist_enable = YES: whether to load the userlist file
Tcp_wrappers = YES whether tcp_wrappers is enabled

In addition, the main configuration file has some important parameters.

Chroot_list_enable = YES: whether to lock the logon Directory of the local account

Ftpd_banner = Welcome to set the Welcome word or warning statement

Max_clients = 200 specify the maximum number of client concurrency of the server to 200

Max_per_ip = 3 indicates the maximum number of connections for each client is 3.

Anon_max_tate = 30000 set the maximum transmission rate of anonymous users to 30 k/s

Local_max_tate = 50000 set the maximum local user transmission rate to 50 k/s

Local_root = defines the home directory for local account login. the default value is the home directory of each user.

Listen_address = IP: Set the IP address listened to by the ftp server

Listen_port = set the port number for ftp operation. the default value is 21.

User_config_dir = specify the sub-configuration file directory to be loaded

Restart service

[Root @ localhost ~] #/Etc/init. d/vsftpd start

Related Article

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.