]> git.ipfire.org Git - thirdparty/AWStats.git/commitdiff
Set SaveDatabaseFilesWithPermissionsForEveryone to 0 by default
authoreldy <>
Sat, 22 Jan 2005 15:26:07 +0000 (15:26 +0000)
committereldy <>
Sat, 22 Jan 2005 15:26:07 +0000 (15:26 +0000)
wwwroot/cgi-bin/awstats.model.conf
wwwroot/cgi-bin/awstats.pl

index b3fb6be9e18a106138573ab4befd5759b19e1dd9..f382231f02ea6f384f46a54887c02b5a3d50d6f0 100644 (file)
@@ -375,19 +375,20 @@ BuildHistoryFormat=text
 BuildReportFormat=html
 
 
-# In most case, AWStats is used as a cgi program. So AWStats process is ran
-# by default web server user (nobody for Unix, IUSR_xxx for IIS/Windows,...).
-# To make use easier and avoid permission's problems between update process 
-# (run by an admin user) and CGI process (ran by a low level user), AWStats
-# save its database files with read and write for everyone.
-# If you have experience on managing security policies (Web Hosting Provider),
-# you should set this parameter to 0. AWStats will keep default process user
-# permissions on its files.
+# AWStats databases can be updated from command line of from a browser (when
+# used as a cgi program). So AWStats database files need write permission
+# for both command line user and default web server user (nobody for Unix,
+# IUSR_xxx for IIS/Windows,...).
+# To avoid permission's problems between update process (run by an admin user)
+# and CGI process (ran by a low level user), AWStats can save its database 
+# files with read and write permissions for everyone.
+# By default, AWStats keep default user permissions on updated files. If you 
+# set AllowToUpdateStatsFromBrowser to 1, you can change this parameter to 1.
 # Change : Effective for new updates only
 # Possible values: 0 or 1
-# Default: 1
+# Default: 0
 #
-SaveDatabaseFilesWithPermissionsForEveryone=1
+SaveDatabaseFilesWithPermissionsForEveryone=0
 
 
 # AWStats can purge log file, after analyzing it. Note that AWStats is able
index c3b2613b94602ae93f936f057725bd81a8d77715..9c5def3476b1b0ebcbdb344f93f5582ab18a512b 100644 (file)
@@ -1564,7 +1564,7 @@ sub Check_Config {
        if ($CreateDirDataIfNotExists !~ /[0-1]/)       { $CreateDirDataIfNotExists=0; }
        if ($BuildReportFormat !~ /html|xhtml|xml/i)    { $BuildReportFormat='html'; }
        if ($BuildHistoryFormat !~ /text|xml/)                  { $BuildHistoryFormat='text'; }
-       if ($SaveDatabaseFilesWithPermissionsForEveryone !~ /[0-1]/)    { $SaveDatabaseFilesWithPermissionsForEveryone=1; }
+       if ($SaveDatabaseFilesWithPermissionsForEveryone !~ /[0-1]/)    { $SaveDatabaseFilesWithPermissionsForEveryone=0; }
        if ($PurgeLogFile !~ /[0-1]/)                   { $PurgeLogFile=0; }
        if ($ArchiveLogRecords !~ /[0-1]/)              { $ArchiveLogRecords=0; }
        if ($KeepBackupOfHistoricFiles !~ /[0-1]/)      { $KeepBackupOfHistoricFiles=0; }