Re: [squid-users] Problem writing squid PID file when tproxy is enabled.

From: Logu <logsnaath@dont-contact.us>
Date: Tue, 6 Feb 2007 01:33:00 +0530

>> I am using squid-2.6.STABLE9 on linux-2.6.19.1 When
>> I enable "tproxy" option
>> in squid, the squid is not able to write the PID
>> file and I get the
>> following error message in squid.
>>
>> 2007/02/03 16:07:22|
>> /usr/local/squid26s9TP/var/logs/squid.pid: (1)
>> Operation not permitted
>> 2007/02/03 16:07:22| WARNING: Could not write
>> pid file.
>>
>> But without "tproxy" option it works without any
>> issues. Is it a known
>> issue?
>
> tproxy needs root capability, so you must allow it to
> read and write, like chmod 666 or .. you may choose to
> move the pid into /var/run
>

I dont get what you are saying. The squid goes to privileged mode while
writing the pid file and why does it require more than 755 to
/usr/local/squid26s9TP/var/logs/ directory (this is ownened by nobody:nobody
which is the squid user and group).

-logu
Received on Mon Feb 05 2007 - 13:03:31 MST

This archive was generated by hypermail pre-2.1.9 : Thu Mar 01 2007 - 12:00:01 MST