Ondřej Lysoněk 749308e
From 5023020a73f60d4d512f934cfb67d94d1efd921c Mon Sep 17 00:00:00 2001
9683b36
From: rpm-build <rpm-build>
Ondřej Lysoněk 749308e
Date: Thu, 14 Sep 2017 16:41:12 +0200
9683b36
Subject: [PATCH] fedora specific config file
9683b36
9683b36
---
Ondřej Lysoněk 749308e
 pure-ftpd.conf.in | 29 ++++++++++++++---------------
Ondřej Lysoněk 749308e
 1 file changed, 14 insertions(+), 15 deletions(-)
9683b36
9683b36
diff --git a/pure-ftpd.conf.in b/pure-ftpd.conf.in
Ondřej Lysoněk 749308e
index fbaf9b4..b4d6837 100644
9683b36
--- a/pure-ftpd.conf.in
9683b36
+++ b/pure-ftpd.conf.in
9683b36
@@ -9,7 +9,7 @@
9683b36
 # instead of command-line options, please run the
9683b36
 # following command :
9683b36
 #
9683b36
-# @prefix@/sbin/pure-ftpd @sysconfdir@/etc/pure-ftpd.conf
9683b36
+# @sbindir@/pure-ftpd @sysconfdir@/pure-ftpd.conf
9683b36
 #
9683b36
 # Online documentation:
9683b36
 # https://www.pureftpd.org/project/pure-ftpd/doc
9683b36
@@ -106,34 +106,34 @@ MaxIdleTime                  15
9683b36
 
9683b36
 # LDAP configuration file (see README.LDAP)
9683b36
 
9683b36
-# LDAPConfigFile               /etc/pureftpd-ldap.conf
9683b36
+# LDAPConfigFile               @sysconfigdir@/pureftpd-ldap.conf
9683b36
 
9683b36
 
9683b36
 
9683b36
 # MySQL configuration file (see README.MySQL)
9683b36
 
9683b36
-# MySQLConfigFile              /etc/pureftpd-mysql.conf
9683b36
+# MySQLConfigFile              @sysconfigdir@/pureftpd-mysql.conf
9683b36
 
9683b36
 
9683b36
 # PostgreSQL configuration file (see README.PGSQL)
9683b36
 
9683b36
-# PGSQLConfigFile              /etc/pureftpd-pgsql.conf
9683b36
+# PGSQLConfigFile              @sysconfigdir@/pureftpd-pgsql.conf
9683b36
 
9683b36
 
9683b36
 # PureDB user database (see README.Virtual-Users)
9683b36
 
9683b36
-# PureDB                       /etc/pureftpd.pdb
9683b36
+# PureDB                       @sysconfigdir@/pureftpd.pdb
9683b36
 
9683b36
 
9683b36
 # Path to pure-authd socket (see README.Authentication-Modules)
9683b36
 
9683b36
-# ExtAuth                      /var/run/ftpd.sock
9683b36
+# ExtAuth                      @localstatedir@/run/ftpd.sock
9683b36
 
9683b36
 
9683b36
 
9683b36
 # If you want to enable PAM authentication, uncomment the following line
9683b36
 
9683b36
-# PAMAuthentication            yes
9683b36
+PAMAuthentication            yes
9683b36
 
9683b36
 
9683b36
 
Ondřej Lysoněk 749308e
@@ -236,8 +236,7 @@ Umask                        133:022
9683b36
 
9683b36
 # Minimum UID for an authenticated user to log in.
9683b36
 
9683b36
-MinUID                       100
Ondřej Lysoněk 749308e
-
9683b36
+MinUID                       1000
9683b36
 
9683b36
 
9683b36
 # Allow FXP transfers for authenticated users.
Ondřej Lysoněk 749308e
@@ -275,7 +274,7 @@ AutoRename                   no
9683b36
 
9683b36
 # Prevent anonymous users from uploading new files (no = upload is allowed)
9683b36
 
9683b36
-AnonymousCantUpload          no
9683b36
+AnonymousCantUpload          yes
9683b36
 
9683b36
 
9683b36
 
Ondřej Lysoněk 749308e
@@ -299,21 +298,21 @@ AnonymousCantUpload          no
9683b36
 # fw.c9x.org - jedi [13/Apr/2017:19:36:39] "GET /ftp/linux.tar.bz2" 200 21809338
9683b36
 # This log file can then be processed by common HTTP traffic analyzers.
9683b36
 
9683b36
-# AltLog                       clf:/var/log/pureftpd.log
9683b36
+AltLog                       clf:@localstatedir@/log/pureftpd.log
9683b36
 
9683b36
 
9683b36
 
9683b36
 # Create an additional log file with transfers logged in a format optimized
9683b36
 # for statistic reports.
9683b36
 
9683b36
-# AltLog                       stats:/var/log/pureftpd.log
9683b36
+# AltLog                       stats:@localstatedir@/log/pureftpd.log
9683b36
 
9683b36
 
9683b36
 
9683b36
 # Create an additional log file with transfers logged in the standard W3C
9683b36
 # format (compatible with many HTTP log analyzers)
9683b36
 
9683b36
-# AltLog                       w3c:/var/log/pureftpd.log
9683b36
+# AltLog                       w3c:@localstatedir@/log/pureftpd.log
9683b36
 
9683b36
 
9683b36
 
Ondřej Lysoněk 749308e
@@ -344,9 +343,9 @@ AnonymousCantUpload          no
9683b36
 
9683b36
 
9683b36
 # If your pure-ftpd has been compiled with standalone support, you can change
9683b36
-# the location of the pid file. The default is /var/run/pure-ftpd.pid
9683b36
+# the location of the pid file. The default is @localstatedir@/run/pure-ftpd.pid
9683b36
 
9683b36
-# PIDFile                      /var/run/pure-ftpd.pid
9683b36
+#PIDFile                     @localstatedir@/run/pure-ftpd.pid
9683b36
 
9683b36
 
9683b36
 
9683b36
-- 
Ondřej Lysoněk 749308e
2.9.5
9683b36