Article title: FTP-related content. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.
FTP is often used as one of the most commonly used protocols on the Internet. There are also a lot of software to implement this protocol. today we will discuss some superficial functions of the ftp server based on the default vsftpd software on Red Hat Enterprise Linux 5.
I. basic configuration
/Etc/vsftpd. conf is the main configuration file of the vsftp program. The following parameters are added by default:
Anonymous_enable = YES
# Enabling this option supports anonymous logon;
Local_enable = YES
# This option is equal to YES and supports local user logon. If this option is not available, the default value is NO.
Write_enable = YES
# If this option is set to YES, users can create files. (Note: You must have the "w" and "x" permissions on the directories to create files .)
Local_umask = 022
# Umask (mask) when a local user creates a file or directory)
Anon_upload_enable = YES
# Allow anonymous users to upload files
Anon_mkdir_write_enable = YES
# Allow anonymous users to create directories
Dirmessage_enable = YES
# Open this option. when a user enters a directory, the. message file is searched in the directory and displayed on the # screen. This option can be used with the message_file option.
Xferlog_enable = YES
# If this option is YES, the upload and download information will be recorded. The/var/log/vsftpd. log file is recorded by default.
# File, but the file location can be controlled by the vsftpd_log_file option.
# Note: When xferlog_std_format is set to NO, the above two options will take effect.
Xferlog_std_format = YES
Xferlog_file =/var/log/xferlog
# The above two parameters are used to record the transmitted log records in the standard format of xferlog in the xferlog_file option
# Specified log files.
Connect_from_port_20 = YES
# Specify the active data port
Chown_uploads = YES
Chown_username = whoever
# If chown_uploads = YES and chown_username = whoever, the owner of the uploaded file # Changes to whoever.
Idle_session_timeout = 600
# If the client does not perform any operation within the time specified by idle_session_timeout, the server will be disconnected # The connection is measured in seconds (s ).
Data _ connection_timeout = 120
# Data connection timeout, that is, if the data connection is sent after data_connection_timeout
# Yes, the connection is closed, and the unit is second (s ).
Nopriv_user = ft1_cure
#?????????
Userlist_enable = YES
Userlist_file =/etc/vsftpd/user_list
# The above two parameters are used to control user logon
[1] [2] [3] [4] Next page