From: eldy <> Date: Sat, 22 Jan 2005 15:26:07 +0000 (+0000) Subject: Set SaveDatabaseFilesWithPermissionsForEveryone to 0 by default X-Git-Tag: AWSTATS_6_3_RELEASE~8 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b9d9bf42dc305f7d2f4ffbb8ee1a7b17cf837eac;p=thirdparty%2FAWStats.git Set SaveDatabaseFilesWithPermissionsForEveryone to 0 by default --- diff --git a/wwwroot/cgi-bin/awstats.model.conf b/wwwroot/cgi-bin/awstats.model.conf index b3fb6be9..f382231f 100644 --- a/wwwroot/cgi-bin/awstats.model.conf +++ b/wwwroot/cgi-bin/awstats.model.conf @@ -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 diff --git a/wwwroot/cgi-bin/awstats.pl b/wwwroot/cgi-bin/awstats.pl index c3b2613b..9c5def34 100644 --- a/wwwroot/cgi-bin/awstats.pl +++ b/wwwroot/cgi-bin/awstats.pl @@ -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; }