Linux--ftp Server Configuration

Source: Internet
Author: User

One, FTP server WU-FTPD
ftp is one of the most basic, common, and popular information service systems on the Internet that allows users to log on to a remote computer on the Internet, transfer files to their computer, or transfer files from their own computer to a remote computer.


second, the installation and composition of WU-FTPD
wu-ftpd is easy to install, and most versions of Linux include wu-ftpd RPM packages that you can specify when installing Linux. If you want to compile your own source code, you can also go toftp://ftp.wu-ftpd.orgDownload the latest version of the source code package.
after installation, you can use the Ckconfig command to check whether the installation is correct. You can specify the login directory of the FTP user in/etc/passwd.
after installing WU-FTPD, you will see the following 5 executables in the/bin directory:
ftpd FTPserver programs.
Ftpshutused to close the FTP server program.
FtpcountDisplays the number of people currently online.
ftpwhoView the current connection to the FTP server.
CkconfigCheck that the FTP server is set up correctly.
In addition to these executables, the installer has generated 7 configuration files in the/etc and/var directories:
/etc/ftpusers
/etc/ftpaccess
/var/run/ftp.pids
/etc/ftpconversions
/var/log/xferlog
/etc/ftpgroups
/etc/ftphosts
after the system has installed WU-FTPD, a special user FTP is established and a FTPD directory is created in the/home directory, which is automatically located when the user logs on anonymously. In this directory, a number of subdirectories are usually created, for example.
/home/ftpd/binstore some executable files for use by FTP users.
/home/ftpd/etcstore Some configuration files for use by FTP users.
/home/ftpd/pubstore the information for download.
/home/ftpd/incomingStore the space for uploading information.

Third, wu-ftp use of related commandsthrough the above explanation, the user already has the Wu-ftp installation method, the constituent module, as well as the basic configuration method to have the certain understanding. This section will then introduce users to other commands in wu-ftp that are important in the actual operation, such as using the Ftpcount command to count the number of users connected on the current server.
1. Ftpcount
Number of connections statistics command. You can use the Ftpcount command to clearly count the number of users currently connected to the FTP server, and also to list the upper limit. The command output looks like this:

Service class local 0 users (20maximum) service class Remote 5 users (100maximum)

2. Ftpwho
Online user view commands. You can use the ftpwho command to clearly list the details of the user who is currently connected.
3. Ftpshut
FTP Closes the file Generation command. You can use the Ftpshut command to generate a shut.msg file that is set in/etc/ftpaccess for shutdown settings. The format of the Ftpshut command is:

Ftpshut <-l min> <-d min> Time < description >

-L This parameter sets the number of minutes before the FTP server function is closed to stop the user's connection.
-D This parameter sets the number of minutes before the FTP server function is turned off to disconnect the user.
time specifies when to close the FTP server. For example, 6:20 minutes is written as 0620.
4. Ckconfig
Check that the FTP server is set up correctly.
5. Ftprestart
Restart the FTP service.





Reference: http://book.51cto.com/art/200707/50902.htm

This article is from the "--" blog, please be sure to keep this source http://57388.blog.51cto.com/47388/1553309

Linux--ftp Server Configuration

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.