Structure of Proftpd

Source: Internet
Author: User
Tags ftp connection

ProFTPDIt is the most popular FTP server software After Wu-FTP. The structure of ProFTPD is roftpd. conf.

Proftpd. conf: This is the main proftpd configuration file. In the RPM installation example, the directory is/etc/proftpd. conf. In this example, it is in/usr/local/proftpd/etc/proftpd. conf.

/Usr/local/proftpd/sbin/proftpd: This is the main daemon execution file of proftpd. In addition, this is also the service file name set in TCP Wrappers (/etc/hosts. deny (allow. In addition, when proftpd is started, it will read the profile proftpd. conf. However, we can also specify other files for proftpd setting.

# Proftpd-c/usr/local/proftpd/etc/proftpd. conf

/Usr/local/proftpd/bin/ftpcount: currently, the number of proftpd connections is used on the host. You can directly issue ftpcount in the Command column.

/Usr/local/proftpd/sbin/ftpshut: Specify how soon the proftpd service will terminate. Syntax:

Ftpshut [-l min] [-d min] time [warning-message...]

-L min: attempts to create a new ftp connection will not be accepted within a few minutes before the ftp service is disabled.

-D min: The established ftp connection will be suspended within a few minutes before the ftp service is disabled.

Time: the time at which the server will shut down the ftp service. There are two formats:

+ Number is disabled after several minutes

The MMHH server will be disabled at MM: HH today

Note: here we use this command to stop the ftp service, but the actual proftpd process has not stopped. Therefore, this command is usually used to debug ftp.

Example:

After 30 minutes, the FTP service will be closed. During the previous 20 minutes, no new ftp connections will be accepted. The established force Disconnection will be performed 10 minutes before the service is closed, "FTP Server Will shutdown at time" is displayed on the client"

# Ftpshut-l 20-d 10 + 30 "FTP Server Will shutdown at time"

In fact, ftpshut is to generate/etc/shutmsg. You only need to delete the file ftp and can re-serve it, or directly

# Ftpshut-R

/Usr/local/proftpd/bin/ftpwho: You can check the number of people using proftpd. Simple Syntax:

# Ftpwho

Standalone FTP daemon [8451]:

10194 badbird [0 m 11 s] 0 m 6 s (idle)

Service class-1 user

As shown above, a user named badbird is currently using proftpd.

Through the above articles and examples, you should know the structure of Proftpd. Hope to help you!

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.