On Fridayen den 2 August 2002 00.30, David Walser wrote:
> I'm not having any luck with it.  I changed the apache
> UID and GID to 108, and chown -R'd the /var/www2
> directory, and now when I try to run CGIs I get:
>
> [2002-08-01 18:26:46]: uid: (0/root) gid: (108/108)
> cmd: printenv
> [2002-08-01 18:26:46]: cannot run as forbidden uid
> (0/printenv)
> [2002-08-01 18:26:48]: uid: (0/root) gid: (108/108)
> cmd: multimon.cgi
> [2002-08-01 18:26:48]: cannot run as forbidden uid
> (0/multimon.cgi)
>
> I checked with ksysguard and httpd2 itself is running
> as user apache.

My mistake, if you check below it comes clear to you..., try to "rpm -Uvh 
http://d-srv.com/Cooker/SRPMS/apache2-suexec2-2.0.40-0.20020731.1mdk.src.rpm";

and change the line that says "/var/www" to "/var/www2" in the spec file, 
then build a new suexec binary (rpm -bb the.spec). Please tell if that 
worked, thanks.

> --- Oden Eriksson <[EMAIL PROTECTED]> wrote:
> > This message was sent Thu Aug 1 15:04:38 2002, 4
> > hours ago but did not make
> > it to the list from what I can tell...
> >
> > Hi.
> >
> > I have tried to make a apache1 like suexec package
> > for apache2 and I would
> > like people testing it for me.
> >
> > Here's the output from the generated suexec wrapper
> > when I compiled it at
> > home:
> >
> > ./suexec2 -V
> >  -D AP_DOC_ROOT="/var/www"
> >  -D AP_GID_MIN=100
> >  -D AP_HTTPD_USER="apache"
> >  -D AP_LOG_EXEC="/var/log/httpd2/suexec_log"
> >  -D AP_SAFE_PATH="/usr/local/bin:/usr/bin:/bin"
> >  -D AP_SUEXEC_UMASK=077
> >  -D AP_UID_MIN=100
> >  -D AP_USERDIR_SUFFIX="public_html"
> >
> > I have no idea if it actually works... You have to
> > test it yourselves.
> >
> > As of yet the rpm _will_ conflict, use "rpm -Uvh
> > --force" when installing.
> >
> > Get it here:
> >
> > http://d-srv.com/Cooker/
>
> http://d-srv.com/Cooker/RPMS/apache2-suexec2-2.0.40-0.20020731.1mdk.i586.rp
>m
>
> http://d-srv.com/Cooker/SRPMS/apache2-suexec2-2.0.40-0.20020731.1mdk.src.rp
>m
>
> > You might have to become root to rebuild the src.rpm
> > to make it work...
> >
> > Chears.
> > --
> > Regards // Oden Eriksson
> > Deserve-IT Networks -> http://d-srv.com
>
> __________________________________________________
> Do You Yahoo!?
> Yahoo! Health - Feel better, live better
> http://health.yahoo.com

-- 
Regards // Oden Eriksson
Deserve-IT Networks -> http://d-srv.com

Reply via email to