In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article shows you what are the common parameters of Proftpd, which are concise and easy to understand, which can definitely brighten your eyes. I hope you can get something through the detailed introduction of this article.
Proftpd commonly used parameters you know which, I will give you a list!
ServerName
# when the user logs in to the host, proftpd will display some basic information about the FTP software on the Client side!
ServerType
# there are two ways to start proftpd, which are standalone and xinetd
DefaultServer
# default host. This project can be set to on or off, basically, unless you have two IP or set a virtual host (virtualhost), this project should be set to on! Otherwise, some uknown connections will not be able to connect to your FTP service.
Port
# set the FTP command channel port of the host! the FTP command channel is usually 21, and you can also change it, but this setting is valid only if ServerType is standalone.
Umask
# Settings related to the creation of default properties for directories and files! 022 is enough!
MaxInstances
# the number of online connections allowed at the same time, this setting item is related to process (PID)! So there can be up to 30 process enabled by proftpd in your FTP host. This is different from MaxClients!
User and Group
# default service starter! The following users and groups must exist in / etc/passwd and / etc/group!
MaxHostsPerUser 1 "Sorry, a maximum of 1 source ip is allowed per account"
# MaxHostsPerUser is useful for preventing ftp accounts.
MaxClientsPerUser 1 "Sorry, each account can log in at most once on each client."
# this parameter can prevent the server from being damaged by multithreaded software downloads
MaxClientsPerHost 1 "Sorry, only one account can log in to the same client"
# for example, you have many accounts on the ftp server, but you can only log in with one account
WtmpLog on
# whether to record ftp in the log. If you don't want to, you can set off to block the log log.
TimeoutIdle 600
# client idel time setting. Default is 600 seconds.
DisplayLogin welcome.msg
# set ftp login welcome information file
The settings for the welcome file contain the following parameters
% T current time
% F remaining capacity of the hard drive
The directory where% C is currently located
Host name on R Client side
Host name of L Server side
% U user account name
% M * * allowed number of connections
% N current number of server connections
% E email of FTP server administrator
% I the number of files uploaded this time
% o number of files downloaded this time
% t number of files uploaded and downloaded this time
Knowing these parameters, we can write a friendly welcome.
Vi / home/kaoyan/welcome.msg
Welcome% U, this is Frank's test FTP server
The current time is:% T
This server allows a maximum of% M user connections
Currently, there are% N user connections on the server.
Your current directory is% C
The hard drive where the directory is located still has% F bytes left.
Let proftp support the popular passive transport, which is not supported by default. As long as it is set on the server side
AllowForeignAddress on
PassivePorts 49152 65534 # port can also specify your favorite port.
Don't forget to set it to support passive on the client side.
How to enable root to log in? by default, proftp does not support root login. We can set it so that root can also log in to ftp, but we suggest that you * do not allow root to log in to ftp. The settings are as follows
RootLogin on
How to prevent an address from accessing ftp. For example, machines in the 10.1.1 network segment are prohibited from accessing ftp. This can be set as follows.
Order deny,allow
Deny from 10.1.1.
Allow from all
The establishment of a virtual ftp is generally used for a ftp server with many ip addresses, or ftp uses different ports. The basic setting syntax is as follows:
For example, we need to make a ftp server with port 5555:
ServerName "Frank FTP Server"
Port 5555
The above are the common parameters of Proftpd. Have you learned any knowledge or skills? If you want to learn more skills or enrich your knowledge reserve, 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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.