Re: Problems under Red Hat 5.0?

From: Henrik Nordstrom <[email protected]>
Date: Sun, 22 Feb 1998 14:08:09 +0100

Ken Hickey (Stork) wrote:

> I have constant problems trying to install Squid. I am running Red Hat
> Linux 5.0 (Kernel 2.0.32). I have been trying to install version
> 1.1.20 and having no sucess. I also tried version 1.1.18 aswell to
> make sure.
>
> The error message that appears is:
> FATAL ERROR: do no run squid as root. set cache_effective_user.

This is a known problem with RedHat 5.0. setresuid in libc is broken
(only works for kernels 2.1.X)

Workaround 1:
Start squid as a user other than root.
su squid -c /usr/local/squid/RunCache &

Workaround 2:
export ac_cv_func_setresuid=no
./configure ...
make clean
make install

Workaround 3:
After running configure inlude/autoconf.h should read
/* #undef HAVE_SETRESUID */
If not, manually edit autoconf.h and rebuild (make clean; make install)

Another (but not likely) reason is that the user set in
cache_effective_user is using a invalid UID.

---
Henrik Nordstr�m
Sparetime Squid Hacker
Received on Sun Feb 22 1998 - 05:25:34 MST

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:38:56 MST