Bug 671173

Summary: Bad owner of /var/lib/awstats
Product: [Fedora] Fedora Reporter: Pierre Blavy <pierreblavy>
Component: awstatsAssignee: Petr Lautrbach <plautrba>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: low Docs Contact:
Priority: unspecified    
Version: 14CC: plautrba, rpm
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-01-21 16:13:39 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Pierre Blavy 2011-01-20 17:03:02 UTC
Description of problem:
1) Enable the ``update now'' button in awstats
2) click it --> you recieve a bad permission error
Error: Couldn't open file "/var/lib/awstats/something

How reproducible:
always

Actual results:
FIXED with : 
chown -R apache:apache /var/lib/awstats/

Expected results:
A default install of awstats rpm should set the right owner:group for the  /var/lib/awstats/ folder

Comment 1 Petr Lautrbach 2011-01-21 16:13:39 UTC
I don't think that it's good idea to have /var/lib/awstats directory writeable for apache user by default.

The need of write permissions is documented in /etc/awstats/awstats.model.conf so admin can easily find out what is needed: 

# Warning: If you want to be able to use the "AllowToUpdateStatsFromBrowser"
# feature (see later), you need "Write" permissions by web server user on this
# directory (and "Modify" for Windows NTFS file systems).

AllowToUpdateStatsFromBrowser is set to 0 by default so default configuration will work without write permissions.

And also are other web servers than apache like lighttpd.