Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 54330 - squid 2.5.5-r2 - Incorrect permissions on /var/cache/squid
Summary: squid 2.5.5-r2 - Incorrect permissions on /var/cache/squid
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Andrew Bevitt
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-06-18 09:17 UTC by Scott Burger
Modified: 2004-07-14 21:32 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Scott Burger 2004-06-18 09:17:11 UTC
During emerge the /var/cache/squid directory is created as the default location for the squid cache.  This directory is created as root:root 0640 while squid most commonly runs under the context of the user "squid".  As a result, at the first start of squid when squid -z is invoked, the squid process is unable to write to the cache directory and thus fails to run properly.  Squid will start, but it will not service requests and tailing the cache log shows that it is a start - fail/crash - restart loop.

Reproducible: Always
Steps to Reproduce:
1.
2.
3.



Expected Results:  
The default squid cache directory, /var/cache/squid directory should be set as 
owned by the user squid.
Comment 1 Andrew Bevitt 2004-06-18 19:19:33 UTC
Will add solution for this when -r2 goes stable 
Comment 2 Andrew Bevitt 2004-07-14 21:32:22 UTC
The ebuilds have the line this should allready be happening 

install -m0755 -o squid -g squid -d ${ROOT}/var/cache/squid