Search squid archive

Re: How to run squid with root capability?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



--- "L.TK" <squidmailist@xxxxxxx> 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.

[Index of Archives]     [Linux Audio Users]     [Samba]     [Big List of Linux Books]     [Linux USB]     [Yosemite News]

  Powered by Linux