Configuring FTP Server with VSFTP under Redhat Linux

xiaoxiao2021-03-06  98

// Profile

/etc/vsftpd/vsftpd.conf main configuration file

/etc/vsftpd.ftpusers Specify which users cannot access FTP servers

/etc/vsftpd.user_list The user specified in /etc/vsftpd/vsftpd.conf set UserList_enable = YES and can access the FTP server when UserList_Deny = NO

/ / Allow anonymous users to upload

Anon_upload_enable = YES allows anonymous users to upload

Anon_mkdir_write_enable = YES Opens anonymous user's write and creation of permissions

Anon_world_readable_only = no open anonymous user browsing permissions

IDLE_SESSION_TIMEOUT = 600 is interrupted after the user session is idle for 10 minutes

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

accept_timeout = 60

Connect_timeout = 60 automatically disconnects after idle 1 minute, and automatically activates after 1 minute

Max_clients = 200 total customer concurrent connection

Max_Per_IP = 3 Each client maximum connection

Local_max_rate = 50000

Anon_max_rate = 30000 Local User Maximum Transmission Rate 50kb / s, anonymous 30kb / s

//Safety

// 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/vsftpd.conf

/ / Add a comment before configuring the configuration option

// # listen = yes

/ / # TCP_WrapPers = YES

/ / Copy the Xinetd Profile from the document directory of VSFTPD

# 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 you do not start the running VSFTPD when starting.

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

/ / Restart the Xinetd daemon

If there is any problem, please contact: Webmaster@bcxy.com

转载请注明原文地址:https://www.9cbs.com/read-107574.html

New Post(0)