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!