Configure the FTP server with vsftp in RedHat Linux

Source: Internet
Author: User

// Configuration file

/Etc/vsftpd. conf main configuration file

/Etc/vsftpd. ftpusers specifies which users cannot access the FTP server

The user specified by/etc/vsftpd. user_list can access the FTP server when userlist_enable = yes is set in/etc/vsftpd. conf and userlist_deny = No

 

// Allows anonymous users to upload data

Anon_upload_enable = Yes allows anonymous users to upload

Anon_mkdir_write_enable = Yes Enable write and Directory Creation permissions for anonymous users

Anon_world_readable_only = no open anonymous user browsing permission

Idle_session_timeout = 600 interrupted after the user's session is idle for 10 minutes

Data_connectiono_timeout = 120 interrupted after the data connection is idle for 2 minutes

Accept_timeout = 60

Connect_timeout = 60 the connection is automatically disconnected after 1 minute of idle time and activated after 1 minute of Interruption

Max_clients = 200 total number of concurrent client connections

Max_per_ip = 3 maximum number of connections per client

Local_max_rate = 50000

Anon_max_rate = 30000 maximum local user transmission rate of 50kb/s, anonymous 30kb/s

 

// Security

// Set/etc/hosts. Deny

Vsftpd: deny from all

// Set/etc/hosts. Allow

Vsftpd: IP: Allow

 

// Create an anonymous upload directory

# Mkdir/var/FTP/incoming

# Chmod o + w/var/FTP/incoming/

// Run in Xinetd Mode

// Modify the configuration file

# Vi/etc/vsftpd. conf

// Add a comment before the following configuration options

// # Listen = Yes

// # TCP_WRAPPERS = Yes

// Copy the xinetd configuration file from the vsftpd document directory

# Cp/usr/share/doc/vsftpd-1.1.3/vsftpd. xinetd/etc/xinetd. d/vsftpd

// Modify the configuration file

# Vi/etc/xinetd. d/vsftpd

// Change disable = yes to disable = No

// Modify the file in rc3.d so that vsftpd that runs independently is not started at next Startup

# Mv/etc/rc. d/rc3.d/s60vsftpd/etc/rc. d/rc3.d/s60vsftpd

// Restart the xinetd daemon

 
If you have any questions, please send an email to: webmaster@bcxy.com

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.