Configure the WU-FTP server in a LINUX environment

Source: Internet
Author: User
In a LINUX environment, configure the WU-FTP server-Linux Enterprise Application-Linux server application information. For more information, see. Among many network applications, File Transfer porotocol plays an important role. Software resources are a very important resource on the Internet. Most of the various software resources are stored on the FTP server. It can be said that,
FTP and WEB services occupy more than 80% of Internet applications.
The FTP service can be divided into two categories based on different service objects: one is the system FTP Server, which only allows valid users on the system to use; the other is the Anonymous FTP Server, Anonymous FTP Server, it can be used by anyone to log on to the FTP server to obtain files.
  
   1. Select and install FTP server software

If you select "ftpd" when selecting to start the process during LINUX installation, after installing the LINUX system, it has installed a default FTP server to the system. We can use it to implement the functions of the system FTP server. We only need to customize the settings based on our needs.
In most LINUX releases, mongoingtonuniversity FTP is used. It is a famous FTP server software, generally referred to as wu-ftp. It is powerful and can run well on many UNIX operating systems, such as ibm aix, FreeBSD, HP-UX, NeXTstep, Dynix, SunOS, and Solaris. More than half of FTP servers on the Internet use it. Wu-ftp has many powerful functions and is suitable for the management requirements of FTP servers with high throughput:
1) The user can automatically compress or decompress the file while downloading the file;
2) Different access restrictions can be imposed on machines on different networks;
3) records the upload and download times of files;
4) information about transmission can be displayed, so that you can understand the current transmission status in a timely manner;
5) You can set the maximum number of connections to improve efficiency and effectively control the load.
  
   Ii. Composition of wu-ftp

After wu-ftp is installed, you will see the following five executable files in the/bin directory:
Ftpd FTP server program
Ftpshut is used to close FTP server programs
Ftpcount shows current online users
Ftpwho: view the current FTP server connection status
Ckconfig check if FTP server settings are correct
  
In addition to these executable files, it also generates seven configuration files under the/etc and/var directories:
/Etc/ftpusers
/Etc/ftpaccess
/Var/run/ftp. pids
/Etc/ftpconversions
/Var/log/xferlog
/Etc/ftpgroups
/Etc/ftphosts
After wu-ftp is installed, a special user ftp is created and an ftpd directory is created under the/home directory. When you log on anonymously, will be automatically located in this directory. In this directory, several subdirectories are usually created.
/Home/ftpd/bin stores executable files for FTP users
/Home/ftpd/etc stores configuration files for FTP users
/Home/ftpd/pub storage for download information
/Home/ftpd/incoming space for uploading information
  
   Iii. wu-ftp Configuration

1. view and modify the/etc/inetd. conf file.
The/etc/inetd. conf file is the configuration file of the LINUX super server inetd. It monitors multiple TCP/IP ports. When it receives the request, it derives a corresponding server based on the configuration file. By using super servers, other services can be derived only when needed, thus greatly saving system resources. However, wu-ftp uses the superpolar server inetd to listen for requests. When the super server inetd receives the FTP request from the client, it opens an FTP service process according to the configuration file. Therefore, to use wu-ftp, you must confirm that the configuration file inetd. conf of the super server contains the following sentence:
Ftp stream tcp nowait root/usr/sbin/tcpd wu. ftpd so that when the super server receives an FTP request, it can derive a wu-ftp FTP ftp service process. (Note: To confirm whether there is such a line, you can use the File Content SEARCH Command to confirm:
Cat/etc/inetd. conf | if grep ftp does not exist, manually add or modify it.
2. wu-ftpd is the service process of wu-ftpd. It can be executed without parameters or parameters. The following describes the execution parameters of wu-ftpd.
-D when an error occurs on the FTP server, the error is sent to the system syslog;
-L connect each FTP client to the syslog of the system;
-T set the FTP client to be connected for several minutes. If no operation is performed, the connection is closed;
-A enables wu-ftp to use the/etc/ftpaccess setting;
-A: Disable/etc/ftpaccess settings for wu-ftp;
-L records the programs executed after connecting the FTP client to the system syslog;
-I records the logs of files uploaded by the FTP client in the/usr/adm. xferlog file;
-O logs of downloading files from the FTP Client
In the/usr/adm/xferlog file.
Through understanding the above parameters, we recommend that you change the default configuration during system installation to: ftp stream tcp nowait root/usr/sbin/tcpd wu. ftpd? A? I
3. Automatic compression and decompression
To enable the FTP server to automatically compress and decompress, you must first compress and decompress command files such as tar, gzip,
Copy command files such as gunzip, compress, and uncompress to the/home/ftpd/bin directory.
4. About/etc/ftpaccess settings
This configuration file is the most important configuration file on the FTP server. It is directly related to whether your FTP server can work normally and has many permission settings. The following is a typical configuration instance.
  
QUOTE:
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.