Re: [squid-users] How to run squid with root capability?

From: L.TK <squidmailist@dont-contact.us>
Date: Tue, 12 Dec 2006 18:34:32 +0800

zulkarnain 写道:
> --- "L.TK" <squidmailist@126.com> wrote:
>
>>>
>>>
>> comment these lines below in src/main.c
>> if (geteuid() == 0) {
>> debug(0, 0) ("Squid is not safe to run as root! If
>> you must\n");
>> debug(0, 0) ("start Squid as root, then you must
>> configure\n");
>> debug(0, 0) ("it to run as a non-priveledged user
>> with the\n");
>> debug(0, 0) ("'cache_effective_user' option in the
>> config file.\n");
>> fatal("Don't run Squid as root, set
>> 'cache_effective_user'!");
>> }
>>
>> recompile squid and there you go
>>
>
>
> unable to compile this, here is the error;
>
> main.c:490:17: error: missing binary operator before
> token "("
> main.c:490:1: error: unterminated #if
> main.c: In function 'setEffectiveUser':
> main.c:486: error: expected declaration or statement
> at end of input
> make[3]: *** [main.o] Error 1
> make[3]: *** Waiting for unfinished jobs....
>
use "/* */", not "#"
Received on Tue Dec 12 2006 - 03:34:54 MST

This archive was generated by hypermail pre-2.1.9 : Mon Jan 01 2007 - 12:00:01 MST