Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

What is the structure of Proftpd?

2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

In this issue, the editor will bring you about the structure of Proftpd. The article is rich in content and analyzes and narrates it from a professional point of view. I hope you can get something after reading this article.

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

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

/ usr/local/proftpd/sbin/proftpd: this is the daemon execution file for the main proftpd. In addition, this is also the service file name in the TCP Wrappers (/ etc/hosts.deny (allow)) setting. In addition, when proftpd starts, it will read the configuration file, that is, proftpd.conf, but we can also specify other files to set proftpd.

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

/ usr/local/proftpd/bin/ftpcount: currently, the number of online users using proftpd on the host computer can be directly sent to ftpcount in the instruction column.

/ usr/local/proftpd/sbin/ftpshut: specify how soon the proftpd service will be terminated. The syntax is as follows:

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

-l min: attempts to establish a new ftp connection are not accepted for a few minutes before ftp shuts down its service

-d min: established ftp connections will be aborted within minutes before ftp shuts down its service

Time: after how long, the server will shut down the ftp service in two formats

+ number shuts down after number minutes

MMHH the MM:HH server will be shut down today

Note that we use this command to stop the ftp service here, but the actual proftpd process hasn't stopped yet, so this command is usually used in debugging ftp.

For example:

After another 30 minutes, the FTP service will be shut down, and no new ftp connections will be accepted in the previous 20 minutes. Those that have been established will be forcibly disconnected 10 minutes before the service shutdown, and "FTP Server Will shutdown at time" will be displayed on the client side.

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

In fact, ftpshut is to generate / etc/shutmsg, as long as you delete this file, ftp can re-serve, or directly

# ftpshut-R

/ usr/local/proftpd/bin/ftpwho: can be used to see how many people are currently using the proftpd service. A simple syntax can be issued directly to ftpwho, as shown below:

# ftpwho

Standalone FTP daemon [8451]:

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

Service class-1 user

As shown above, there is currently a user, an account called badbird, using proftpd.

The above is the structure of the Proftpd shared by the editor. If you happen to have similar doubts, you might as well refer to the above analysis to understand. If you want to know more about it, you are welcome to follow the industry information channel.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report