Re: [squid-users] Permission error. Unable to create /usr/local/squid/var/cache

From: Anders Widman <andewid@dont-contact.us>
Date: Tue, 26 Mar 2002 20:57:26 +0100

> can you reply with the following info

> cat squid.conf|grep effective_user
> cat squid.conf|grep effective_group
> cat squid.conf|grep cache_dir

cache_effective_user squid
cache_effective_group squid
cache_dir ufs /usr/local/squid/var/cache 100 16 256

Actually, I managed to pinpoint the problem with Hans Juergen von
Lengerke's sollution.

It hapend to be that squid, as user squid didn't have the right
permission to actually enter the /usr/local/squid directory
(executable bit). All subfolders had the appropiate permissions
though.

I never thought of this as root did have the right permission..

Thanks for the help.

//Anders

> ls -l /usr/local/squid/
> ls -l /usr/local/squid/var/cache/

> Thanks.

> Dave Raven.
> OpteqSec.

> ----- Original Message -----
> From: "Anders Widman" <andewid@tnonline.net>
> To: "Hegedus, Ervin" <airween@amit.hu>
> Cc: "Squid Users List" <squid-users@squid-cache.org>
> Sent: Tuesday, March 26, 2002 8:49 PM
> Subject: Re: [squid-users] Permission error. Unable to create
> /usr/local/squid/var/cache

>>
>>
>> > hello,
>>
>> >> 4) When runing "squid -z -X" I get the following error:
>> > [...]
>> >> I have doublechecked the folder permissions for /usr/local/squid/*/*
>> >> and everyone should have full rights.
>>
>> > what is the permissions and who is the owner of the cache
>> > directory? (see squid.conf: cache_dir parameter)
>>
>> > (hint: see with ls -l /path/to/your/cache_dir)
>>
>> The owner of the directory is squid in group squid. Also, squid is
>> running as user squid. Isn't this what the "becoming 'squid'" is about?
>>
>> 2002/03/26 20:31:15| cachemgrRegister: registered config
>> 2002/03/26 20:31:15| leave_suid: PID 18106 called
>> 2002/03/26 20:31:15| leave_suid: PID 18106 giving up root, becoming
> 'squid'
>> 2002/03/26 20:31:15| Creating Swap Directories
>> 2002/03/26 20:31:15| Creating swap space in /usr/local/squid/var/cache
>> FATAL: Failed to make swap directory /usr/local/squid/var/cache: (13)
> Permission denied
>> Squid Cache (Version 2.5.PRE5): Terminated abnormally.
>>
>> > a.
>>
>> //Anders
>>
>>
Received on Tue Mar 26 2002 - 12:58:58 MST

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 17:07:06 MST