zulkarnain 写道:
> --- Henrik Nordstrom <[EMAIL PROTECTED]>
> wrote:
>
>   
>> You should not. cache_effective_user should not be
>> root, not even while
>> using tproxy. But Squid needs to be started as root
>> when unsing tproxy.
>>
>>     
>
> How to started squid as root? 
>
> regards,
> Zul
>
>
>  
> ____________________________________________________________________________________
> Do you Yahoo!?
> Everyone is raving about the all-new Yahoo! Mail beta.
> http://new.mail.yahoo.com
>
>
>   
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



Reply via email to