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 mainly introduces how to set Proftpd.conf, has a certain reference value, interested friends can refer to, I hope you can learn a lot after reading this article, the following let the editor take you to understand it.
The simplest proftpd.conf profile
As a matter of fact, after we have installed proftpd, we have provided a very simple but used proftpd.conf configuration content! Let's take a look at the contents of this easy setting.
[root@test root] # vi / usr/local/proftpd/etc/proftpd.conf
# below are the environment settings for the FTP host, and the content of each project is:
# ServerName: when the user logs in to the host, the proftpd will be displayed on the Client
Some of the basic messages of # FTP memory!
# ServerType: there are several ways to start proftpd, one is standalone
# and inetd, because we started with super daemon, so
# set to inetd! If you want to start immediately (not via xinetd)
# you need to set it to standalone
# DefaultServer: the default host! This item can be set to on or off, basically
# unless you have two IP or configured a remote host (virtualhost)
# otherwise this project should be set to on! Otherwise, some uknown
The connection of # will automatically connect to your FTP service!
# Port: configure the FTP command channel port of the host! As indicated by the previous Wu FTP, FTP
# the command channel is usually 21, and you can also change it, but this setting is only available when
# ServerType is valid only when standalone! If inetd works with xientd and
# / etc/services is related to that!
# Umask: settings related to the default of creating directories and files! You can't use 022!
# MaxInstances: the number of 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!
# default service starter for User and Group:proftpd! Followed by users and groups
# must exist on / etc/passwd and / etc/group!
ServerName "this is my brother's test Proftp host"
ServerType inetd
DefaultServer on
Port 21
Umask 022
MaxInstances 30
User nobody
Group nobody
# below are the settings related to the directory! In this setting, allow overwriting and overwriting of files!
# AllowOverwrite means to allow repetition!
AllowOverwrite on
# it has something to do with anonymous logins! It is indicated by: "default anonymous login
The # entry is the user's home directory of ftp, because ~ represents the meaning of home directory!
# moreover, after anonymously logging in to the host, the process will be granted user:group rights of ftp:ftp!
# as for that UserAlias, it is setting "aliases for names"! The method is:
# UserAlias "Login account" and "actual Linux Host account"
# MaxClients: no more than 10 anonymous are allowed to log in to our hosts!
# DisplayLogin: the file content of the welcome face after the user logs in!
# DisplayFirstChdir: when transferring to a directory (cd directive), display the attention item file content of the directory
User ftp
Group ftp
UserAlias anonymous ftp
MaxClients 10
DisplayLogin welcome.msg
DisplayFirstChdir .message
# the following is to restrict anonymous "does not have the right to import!" because WRITE is imported
# plus DenyAll means that the login right is revoked!
DenyAll
So, in this example, our proftpd has the following functions:
Start proftpd with super daemon, and the right to start proftpd is nobody:nobody, in addition, there are only a maximum of 30 process
Proftpd uses port number as port 21 (you really need to see the settings of / etc/xinetd.d/proftpd)!
This proftpd allows both real user and anonymous login at the same time!
Real user can jump out of your home directory (without chroot) and have permission to import. In addition, the establishment of directory and file configuration is limited to dir:755, file:644.
Anonymous users can only access up to 10 people at the same time, and the permission is ftp:ftp, and "anonymous does not have access rights!"
Thank you for reading this article carefully. I hope the article "how to set up Proftpd.conf" shared by the editor will be helpful to everyone. At the same time, I also hope you will support us and pay attention to the industry information channel. More related knowledge is waiting for you to learn!
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.