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

Steps to install and configure Pureftp for Centos

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

Share

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

This article mainly explains "Centos installation and configuration of Pureftp steps", interested friends may wish to take a look. The method introduced in this paper is simple, fast and practical. Let's let the editor take you to learn the steps of Centos installation and configuration of Pureftp.

This article introduces you to install and configure Pureftp under Centos.

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

RPM defaults to another configuration file:

/ etc/sysconfig/pure-ftpd

Please don't forget to browse through http://www.pureftpd.org/documentation.html 's

Documentation to view a list of all 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. While other users are still

Will 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 will be fine.

TrustedGID 100

Compatible with relatively irregular ftp clients such as ie

BrokenClientsCompatibility no

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

MaxClientsNumber 50

Run as a doemon process (Fork in background)

Daemonize yes

Number of users allowed to connect simultaneously on 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

Hidden files (dot-files) are listed even if the client does not send the'- a 'option.

DisplayDotFiles yes

Authenticated users are not allowed-only as a public anonymous FTP.

AnonymousOnly no

Anonymous connections are not allowed, only authenticated users are allowed to use them.

NoAnonymous no

Syslog facility (auth, authpriv, daemon, ftp, security, user, local*)

# default function (facility is "ftp". "none" will disable logging.

SyslogFacility ftp

Customize the display information of users after login (Display fortune cookies)

FortunesFile / usr/share/fortune/zippy

Hostnames are not resolved 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.

DontResolve yes

* idle time allowed by the client (minutes, default 15 minutes)

MaxIdleTime 15

LDAP configuration file (see README.LDAP)

LDAPConfigFile / etc/pureftpd-ldap.conf

MySQL configuration file (see README.MySQL)

MySQLConfigFile / etc/pureftpd-mysql.conf

Postgres configuration file (see README.PGSQL)

PGSQLConfigFile / etc/pureftpd-pgsql.conf

PureDB user database (refer to README.Virtual-Users)

PureDB / etc/pureftpd.pdb

Socket path of 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 these 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 the user name is not found

If the SQL authentication fails, another authentication will be tried in / etc/passwd and / etc/shadow, if due to

If SQL authentication fails because of a password error, the authentication will end here. Authentication methods are chained by the order in which they are given.

Pick it up.

'Recursive restrictions on the ls' command. * parameters give the number of * * displayed in the file. The second parameter gives the subdirectory depth of *.

LimitRecursion 2000 8

Allow anonymous users to create new directories?

AnonymousCanCreateDirs no

If the loaded of the system exceeds the following value, anonymous users will be prohibited from downloading.

MaxLoad 4

The port range of the passive connection response. -for firewalling.

PassivePortRange 30000 50000

Force an IP address to use a passive response (PASV/EPSV/SPSV replies). -for NAT.

Symbolic host names are also accepted for gateways with dynamic IP

Addresses.

ForcePassiveIP 192.168.0.1

The upload / download ratio of anonymous users.

AnonymousRatio 1 10

The upload / download ratio of all users.

This directive superscedes the previous one.

UserRatio 1 10

Downloads of files owned by "ftp" are not accepted. For example: files that have not been verified by the local administrator after being uploaded by anonymous users.

AntiWarez yes

The IP address and port on which the service listens. (default is all IP addresses and port 21)

Bind 127.0.0.1,21

* * bandwidth (KB/s) of anonymous users.

AnonymousBandwidth 8

* * bandwidth (KB/s) for all users, including anonymous users.

Use AnonymousBandwidth * or* UserBandwidth, both makes no sense.

UserBandwidth 8

Property mask values for new directories and files. :.

177:077 if you feel paranoid.

Umask 133:022

The smallest number of ID (UID) that authenticated users are allowed to log in.

At this point, I believe that everyone on the "Centos installation and configuration of Pureftp steps" have a deeper understanding, might as well to the actual operation of it! Here is the website, more related content can enter the relevant channels to inquire, follow us, continue 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.

Share To

Servers

Wechat

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

12
Report