Hi,
> I installed squid on linux machine. I want to run
> squid as root, I don't want to run as any user.
Why do you want to do this? There is no reason for running squid as root.
> I tried,it's gave fatal error.
>
> after that I commented some portion in the main.c
> file
> and tried again. it's working fine is that right way
> of doing or not?
>
> in squid-2.5.STABLE6/src/main.c file I commented the
> following code.
>
> /* 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'!");
> }*/
Why don't you follow the guidelines here? It says you should _not_ run squid
as root. So don't do it.
Regards,
Peter
-- Peter Albrecht peter.albrecht@novell.com Novell Worldwide Training Services Novell GmbH Phone +49-89-20600-1801 Frankfurter Ring 115a Fax +49-89-20600-2100 D-80807 Munich http://www.novell.com/training/Received on Fri Nov 19 2004 - 01:00:18 MST
This archive was generated by hypermail pre-2.1.9 : Wed Dec 01 2004 - 12:00:01 MST