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

From: zulkarnain <sizulku@dont-contact.us>
Date: Mon, 11 Dec 2006 23:20:05 -0800 (PST)

--- "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....

 
____________________________________________________________________________________
Have a burning question?
Go to www.Answers.yahoo.com and get answers from real people who know.
Received on Tue Dec 12 2006 - 00:20:23 MST

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