Hi Rocky,
At 12:44 AM 23/12/2002 -0800, Rocky wrote:
>Hi,
>
>According to Chapter 2 of Squid User Guide, it states
>that "For the maximum flexibility in allowing root and
>non-root users to manipulate the Squid configuration,
>you should make both a new user and two new groups,
>specifically for the Squid system, rather than using
>the nobody and nogroup IDs.
>
>In Chapter 4, instructions were also given to change
>the cache owner by doing :
>
>mkdir /usr/local/squid/cache/
>chown squid:squidadm /usr/local/squid/cache/
>chmod 770 /usr/local/squid/cache/
You want to:
- Make sure that the cache dir exists (it probably does)
- Try chown -R squid:squidadm /usr/local/squid/cache/
This is because you need to make sure that the cache_dir and ideally
others, are also owned by the appropriate users so that squid has
permission to write files in the respective directory. The '-R' option
changes ownership recursively down from the directory you specified on the
command line.
I assume you are using your new squid user and group both in squid.conf and
in your chown statements above.
>and squid.conf's cache_effective_user and
>cache_effective_group tags should be set to squid.
>
>Even I have done all these, I still could not execute
>"squid -z". I keep getting :
>FATAL: Failed to make swap directory
>/usr/local/squid/var/cache: (13) Permission denied
>Squid Cache (Version 2.5.STABLE1): Terminated
>abnormally.
>
>So did I missed out anything ? I can't work on Squid
>further if this problem is not solved, I would
>appreciate if someone can help. Thank you.
-------------------------------------------------------------
Reuben Farrelly West Ryde, NSW 2114, Australia
Received on Mon Dec 23 2002 - 01:52:40 MST
This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 17:12:11 MST