RE: [squid-users] Can't create swap space

From: Henrik Nordstrom <hno@dont-contact.us>
Date: Wed, 22 Dec 2004 02:03:50 +0100 (CET)

On Tue, 21 Dec 2004, Elsen Marc wrote:

>
>
>>
>> Hi!
>>
>> My name is Thomas Bitschnau and I am doing a work on squid for my
>> studies at the moment.
>> The first step in this work is to get squid to work. I am
>> using "Squid -
>> The definitive guide" released by O'Reilly to manage this.
>>
>> I created a user "squid" and a group "squid" on my home
>> machine (Fedora
>> Linux Core 3). I changed permission on my */squid/var/
>> directory to the
>> former written user, as you can see below:
>>
>> root@BearKnuckle:/home/thomas/squid# ls -la var/
>> total 16
>> drwxr-xr-x 4 root root 4096 Dec 21 12:13 .
>> drwxr-xr-x 4 root root 4096 Dec 21 12:06 ..
>> drwxr-xr-x 2 squid squid 4096 Dec 21 10:13 cache
>> drwxr-xr-x 2 squid squid 4096 Dec 15 14:54 logs
>>
>> If I try to create the cache using "squid -zX" as root, this
>> is (a part)
>> of the output:
>>
>> 2004/12/21 12:35:48| leave_suid: PID 5113 called
>> 2004/12/21 12:35:48| leave_suid: PID 5113 giving up root, becoming
>> 'squid'
>> 2004/12/21 12:35:48| Creating Swap Directories
>> 2004/12/21 12:35:48| Creating swap space in
>> /home/thomas/squid/var/cache

please check the permissions of the whole path

   ls -ld /home /home/thomas /home/thomas/squid /home/thomas/squid/var /home/thomas/squid/var/cache

in all the steps Squid need to have at least x permission, and in the last
(the actual cache directory) rwx permissions. This applies to the logs
directory as well.

Regards
Henrik
Received on Tue Dec 21 2004 - 18:03:52 MST

This archive was generated by hypermail pre-2.1.9 : Sat Jan 01 2005 - 12:00:02 MST