Search squid archive

Re: How to run squid with root capability?

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

 



zulkarnain 写道:
> --- Henrik Nordstrom <henrik@xxxxxxxxxxxxxxxxxxx>
> 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




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

  Powered by Linux