httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <fe...@crowfix.com>
Subject Re: Trouble with suexec and apache 2.0.35 -- More
Date Mon, 15 Apr 2002 00:08:27 GMT
Sorry about the confusion.  I don't like ~/public_html, I have always
put personal areas under /home/www/.  my login home dir is
/home/felix, the personal www root is /home/www/felix/.  Under there
are cgi-bin, htdocs, fcgi, etc.

This has worked under 1.* for as long as I can remember, back to 1995
or so I think.  It works for 2.0.35 EXCEPT for suexec.  The logged
complaint in the errors log file is

[2002-04-14 13:54:57]: uid: (501/felix) gid: (100/100) cmd: delwww
[2002-04-14 13:54:57]: command not in docroot (/home/www/felix/cgi-bin/delwww)

The compile time suexec config options were

--enable-suexec
--with-suexec-bin=/usr/local/apache/sbin/suexec
--with-suexec-caller=www
--with-suexec-userdir=/home/www
--with-suexec-docroot=/usr/local/apache/share/htdocs
--with-suexec-uidmin=500
--with-suexec-gidmin=100
--with-suexec-logfile=/usr/local/apache/var/log/suexec.log

The suexec -V output is

 -D AP_DOC_ROOT="/usr/local/apache/share/htdocs"
 -D AP_GID_MIN=100
 -D AP_HTTPD_USER="www"
 -D AP_LOG_EXEC="/usr/local/apache/var/log/suexec.log"
 -D AP_SAFE_PATH="/usr/local/bin:/usr/bin:/bin"
 -D AP_UID_MIN=500
 -D AP_USERDIR_SUFFIX="/home/www"

The httpd.conf directives are

UserDir /home/www/*

<Directory /home/www/*>
    AllowOverride AuthConfig FileInfo Indexes Limit
    Order deny,allow
    Deny from all
    Allow from 192.168.1 216.240.38.152/29 207.159.47
</Directory>

<Directory /home/www/*/cgi-bin>
    AllowOverride AuthConfig
    Options ExecCGI FollowSymLinks
    Order deny,allow
    Deny from all
    Allow from 192.168.1 216.240.38.152/29 207.159.47
    SetHandler cgi-script
</Directory>

This is unchanged from 1.3.20.  I can stop 2.0.35 and start 1.3.20 and
everything works fine.

-- 
            ... _._. ._ ._. . _._. ._. ___ .__ ._. . .__. ._ .. ._.
     Felix Finch: scarecrow repairman & rocket surgeon / felix@crowfix.com
  GPG = E987 4493 C860 246C 3B1E  6477 7838 76E9 182E 8151 ITAR license #4933
I've found a solution to Fermat's Last Theorem but I see I've run out of room o

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message