httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <fe...@crowfix.com>
Subject Trouble with suexec and apache 2.0.35
Date Sun, 14 Apr 2002 21:55:53 GMT
I must be doing something really senseless.  If someone can enlighten
me, I will be eternally grateful :-O

I have been running 1.3.20, and decided it was time to upgrade.
2.0.35 works fine except for suexec.  I have worked through various
problems, for instance, configuring with relative paths instead of
absolute, but now I'm stuck, or at least, it's getting too complicated
and I will probably revert to 1.3.20 until 2.0.36 comes out, or beg
for help here.

This is a linux 2.2 system, installing apache 2.0.35 from source.  The
suexec config options are

--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 error log complains

[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)

Well, it's not supposed to be looking in docroot, it's supposed to
look in /home/www/felix/....  But looking at suexec.c, apparently that
error message means it's not in either the main docroot or in the user
docroot.  The decision about which to check depends on a variable
userdir.  This is set true only if argv[1] begins with a tilde.

I added some debugging to suexec, and it shows that argv has these
values:

suexec: argv.0 = (/usr/local/apache/sbin/suexec)
suexec: argv.1 = (501)
suexec: argv.2 = (100)
suexec: argv.3 = (delwww)
suexec: argv.4 = (delwww)

No tilde there!  This is where I gave up.  I'm not looking for a bug
in apache, I'm looking for clues to what I am doing wrong, but I've
dug about as deep as I feel like; it seems more likely I have simply
done something really simply wrong.

Any clues for the weary?

-- 
            ... _._. ._ ._. . _._. ._. ___ .__ ._. . .__. ._ .. ._.
     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