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

How to install and configure proftp system in CentOS

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

Share

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

This article shows you how to install and configure the proftp system in CentOS, the content is concise and easy to understand, it will definitely brighten your eyes. I hope you can get something through the detailed introduction of this article.

CentOS installation and configuration proftp system software files

/ usr/local/pureftpd/sbin/pure-config.pl / usr/local/pureftpd/etc/pure-ftpd.conf

RPM defaults to another CentOS installation configuration file:

/ etc/sysconfig/pure-ftpd

Please don't forget to browse the http://www.pureftpd.org/documentation.html documentation for a full list of options.

Restrict all users to their home directories

ChrootEveryone yes

If the previous instruction is set to "no", the members of the following group (GID) are not restricted by the home directory. Other users will still be restricted to their own home directory. If you don't want to restrict any users to your home directory, just comment out ChrootEveryone and TrustedGID.

TrustedGID 100is compatible with relatively irregular ftp clients such as ie.

Total number of BrokenClientsCompatibility no server users allowed to connect at the same time

MaxClientsNumber 50 runs as a doemon process (Fork in background)

Number of Daemonize yes users allowed to connect at the same time with the same IP (Maximum number of sim clients with the same IP address)

MaxClientsPerIP 8 if you want to record all customer commands, set this command to "yes".

This directive can be duplicated to also log server responses.

VerboseLog no lists hidden files (dot-files) even if the client does not send the'- a 'option.

DisplayDotFiles yes does not allow authenticated users-only as a public anonymous FTP.

AnonymousOnly no does not allow anonymous connections, only for authenticated users.

NoAnonymous no

The default function of Syslog facility (auth, authpriv, daemon, ftp, security, user, local*) (facility is "ftp". "none" will disable logging.

SyslogFacility ftp customizes the display information of users after login (Display fortune cookies)

FortunesFile / usr/share/fortune/zippy does not resolve hostnames in the log file. If the log is less detailed, it uses less bandwidth. In a place with a large number of visitors

Set this command to "yes" if you don't have a working DNS.

Idle time allowed by the DontResolve yes client (minutes, default 15 minutes)

MaxIdleTime 15 LDAP CentOS installation configuration file (see README.LDAP)

LDAPConfigFile / etc/pureftpd-ldap.conf MySQL CentOS installation configuration file (see README.MySQL)

MySQLConfigFile / etc/pureftpd-mysql.conf

Postgres installation configuration file (see README.PGSQL)

PGSQLConfigFile / etc/pureftpd-pgsql.conf PureDB user database (see README.Virtual-Users)

Socket path of PureDB / etc/pureftpd.pdb pure-authd (see README.Authentication-Modules)

ExtAuth / var/run/ftpd.sock if you want to enable PAM authentication, remove the comments on the following lines.

PAMAuthentication yes if you want to enable simple Unix system authentication (/ etc/passwd), remove the comments on the following lines.

UnixAuthentication yes

Please note that LDAPConfigFile, MySQLConfigFile, PAMAuthentication and UnixAuthentication instructions can only be used once, but they can be mixed together. For example, if you use MySQLConfigFile and UnixAuthentication, then the SQL server will be accessed. If SQL authentication fails because the user name cannot be found, another authentication will be tried in / etc/passwd and / etc/shadow, and if SQL authentication fails because of a password error, authentication will end here. Authentication methods are linked by the order in which they are given.

The above content is how to install and configure proftp system in CentOS. 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.

Share To

Servers

Wechat

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

12
Report