[Systems] Fwd: [Systems-logs] Cron <www-data at sunjammer> [ -x /usr/share/awstats/tools/update.sh ] && /usr/share/awstats/tools/update.sh
Samuel Cantero
scanterog at gmail.com
Wed Feb 24 14:20:45 EST 2016
Hi all,
I have received a bunch of this email. The user www-data is executing the
awstats update script and it doesn't have permission to read the
/var/log/apache2/codewiz.org/codewiz.org-access.log apache log file. The
same for /var/log/apache2/access.log. The permission is set to:
-rw-r----- 1 root adm 9,2M Feb 24 14:05 codewiz.org-access.log
-rw-r----- 1 root adm 9,8M Feb 24 14:13 access.log
However, all the old log files have the following permission:
-rw-rw---- 1 root www-data 429K Jan 4 2015
codewiz.org-access.log-20150104.xz
I guess logrotate (/etc/logrotate.d/apache2) is in charge of setting this
permission. So I checked it and I found the following directive: create 640
root adm. I can find the same pattern in the other log files. I guess we
should change it to: create 660 root www-data.
If you are ok with me, I will proceed to change it and fix manually the
permissions for the current log files.
Best regards,
Samuel C.
---------- Forwarded message ----------
From: Cron Daemon <root at sugarlabs.org>
Date: Wed, Feb 24, 2016 at 2:40 PM
Subject: [Systems-logs] Cron <www-data at sunjammer> [ -x
/usr/share/awstats/tools/update.sh ] && /usr/share/awstats/tools/update.sh
To: root at sugarlabs.org
Error while processing /etc/awstats/awstats.codewiz.org.conf
Create/Update database for config "/etc/awstats/awstats.codewiz.org.conf"
by AWStats version 7.2 (build 1.992)
>From data in log file "/var/log/apache2/codewiz.org/codewiz.org-access.log
"...
Error: Couldn't open server log file "/var/log/apache2/
codewiz.org/codewiz.org-access.log" : Permission denied
Setup ('/etc/awstats/awstats.codewiz.org.conf' file, web server or
permissions) may be wrong.
Check config file, permissions and AWStats documentation (in 'docs'
directory).
Error while processing /etc/awstats/awstats.conf
Create/Update database for config "/etc/awstats/awstats.conf" by AWStats
version 7.2 (build 1.992)
>From data in log file "/var/log/apache2/access.log"...
Error: Couldn't open server log file "/var/log/apache2/access.log" :
Permission denied
Setup ('/etc/awstats/awstats.conf' file, web server or permissions) may be
wrong.
Check config file, permissions and AWStats documentation (in 'docs'
directory).
_______________________________________________
Systems-logs mailing list
Systems-logs at lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/systems-logs
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sugarlabs.org/archive/systems/attachments/20160224/37573216/attachment.html>
More information about the Systems
mailing list