Bug 671173 - Bad owner of /var/lib/awstats
Summary: Bad owner of /var/lib/awstats
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: awstats
Version: 14
Hardware: Unspecified
OS: Unspecified
unspecified
low
Target Milestone: ---
Assignee: Petr Lautrbach
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-01-20 17:03 UTC by Pierre Blavy
Modified: 2011-01-21 16:13 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-01-21 16:13:39 UTC
Type: ---


Attachments (Terms of Use)

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.


Note You need to log in before you can comment on or make changes to this bug.