add openSuSE 11 configs, based on the work of Andrej Semen and Wolfgang Rosenauer in the OBS, thanks!
Signed-off-by: Robert Förster (Dessa) <Dessa@froxlor.org>
This commit is contained in:
@@ -0,0 +1,75 @@
|
||||
# Config file for /etc/init.d/pure-ftpd
|
||||
##Comment variables out to disable its features, or change the values in it... ##
|
||||
# Maximum number of simultaneous users
|
||||
|
||||
MaxClientsNumber 30
|
||||
|
||||
# Fork in background
|
||||
|
||||
Daemonize yes
|
||||
|
||||
# Maximum number of sim clients with the same IP address
|
||||
|
||||
MaxClientsPerIP 3
|
||||
|
||||
# Don't allow authenticated users - have a public anonymous FTP only.
|
||||
|
||||
# If you want to log all client commands, set this to "yes".
|
||||
# This directive can be duplicated to also log server responses.
|
||||
|
||||
VerboseLog no
|
||||
|
||||
# Allow dot-files
|
||||
AllowDotFiles yes
|
||||
|
||||
# List dot-files even when the client doesn't send "-a".
|
||||
|
||||
DisplayDotFiles yes
|
||||
|
||||
AnonymousOnly no
|
||||
|
||||
# Disallow anonymous connections. Only allow authenticated users.
|
||||
|
||||
NoAnonymous yes
|
||||
|
||||
# Don't resolve host names in log files. Logs are less verbose, but
|
||||
# it uses less bandwidth. Set this to "yes" on very busy servers or
|
||||
# if you don't have a working DNS.
|
||||
|
||||
DontResolve yes
|
||||
|
||||
# Maximum idle time in minutes (default = 15 minutes)
|
||||
|
||||
MaxIdleTime 15
|
||||
|
||||
# MySQL configuration file (see README.MySQL)
|
||||
|
||||
MySQLConfigFile /etc/pure-ftpd/pure-ftpd-mysql.conf
|
||||
|
||||
# If you want to enable PAM authentication, uncomment the following line
|
||||
|
||||
PAMAuthentication no
|
||||
|
||||
# 'ls' recursion limits. The first argument is the maximum number of
|
||||
# files to be displayed. The second one is the max subdirectories depth
|
||||
|
||||
LimitRecursion 2000 8
|
||||
|
||||
# Are anonymous users allowed to create new directories ?
|
||||
|
||||
AnonymousCanCreateDirs no
|
||||
|
||||
# If the system is more loaded than the following value,
|
||||
# anonymous users aren't allowed to download.
|
||||
|
||||
MaxLoad 4
|
||||
|
||||
...
|
||||
|
||||
# This option is useful with servers where anonymous upload is
|
||||
# allowed. As /var/ftp is in /var, it save some space and protect
|
||||
# the log files. When the partition is more that X percent full,
|
||||
# new uploads are disallowed.
|
||||
|
||||
MaxDiskUsage 90
|
||||
|
||||
@@ -0,0 +1,15 @@
|
||||
## connect via port 3306
|
||||
#MYSQLServer localhost
|
||||
#MYSQLPort 3306
|
||||
## or connect via sock
|
||||
MYSQLSocket /var/lib/mysql/mysql.sock
|
||||
##
|
||||
MYSQLUser <SQL_UNPRIVILEGED_USER>
|
||||
MYSQLPassword <SQL_UNPRIVILEGED_PASSWORD>
|
||||
MYSQLDatabase <SQL_DB>
|
||||
MYSQLCrypt any
|
||||
MYSQLGetPW SELECT password FROM ftp_users WHERE username="\L" AND login_enabled="y"
|
||||
MYSQLGetUID SELECT uid FROM ftp_users WHERE username="\L" AND login_enabled="y"
|
||||
MYSQLGetGID SELECT gid FROM ftp_users WHERE username="\L" AND login_enabled="y"
|
||||
MYSQLGetDir SELECT homedir FROM ftp_users WHERE username="\L" AND login_enabled="y"
|
||||
MySQLGetQTASZ SELECT CONCAT( diskspace / 1024 ) AS diskspace FROM panel_customers WHERE loginname="\L" AND deactivated="0"
|
||||
Reference in New Issue
Block a user