/*
- * $Id: main.cc,v 1.133 1997/01/22 22:02:38 wessels Exp $
+ * $Id: main.cc,v 1.134 1997/02/06 19:01:46 wessels Exp $
*
* DEBUG: section 1 Startup and Main Loop
* AUTHOR: Harvest Derived
parseConfigFile(ConfigFile);
leave_suid(); /* Run as non privilegied user */
+ 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'!");
+ }
if (httpPortNumOverride != 1)
Config.Port.http = (u_short) httpPortNumOverride;