DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=18156>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=18156

Suexec runs as the VirtualHost user instead of the owner of the UserDir





------- Additional Comments From [EMAIL PROTECTED]  2004-04-10 11:23 -------
Attached is some system information that might be helpful.

My configure command-line:
./configure --enable-mods-shared=all --enable-ssl --enable-proxy 
--enable-suexec 
--with-suexec-caller=nobody --with-suexec-docroot=/home


Output of suexec -V:
 -D AP_DOC_ROOT="/home"
 -D AP_GID_MIN=100
 -D AP_HTTPD_USER="nobody"
 -D AP_LOG_EXEC="/usr/local/apache2/logs/suexec_log"
 -D AP_SAFE_PATH="/usr/local/bin:/usr/bin:/bin"
 -D AP_UID_MIN=100
 -D AP_USERDIR_SUFFIX="public_html"


Output of apachectl -V:
Server version: Apache/2.0.49
Server built:   Apr 10 2004 13:17:23
Server's Module Magic Number: 20020903:7
Architecture:   32-bit
Server compiled with....
 -D APACHE_MPM_DIR="server/mpm/prefork"
 -D APR_HAS_SENDFILE
 -D APR_HAS_MMAP
 -D APR_HAVE_IPV6 (IPv4-mapped addresses enabled)
 -D APR_USE_SYSVSEM_SERIALIZE
 -D APR_USE_PTHREAD_SERIALIZE
 -D SINGLE_LISTEN_UNSERIALIZED_ACCEPT
 -D APR_HAS_OTHER_CHILD
 -D AP_HAVE_RELIABLE_PIPED_LOGS
 -D HTTPD_ROOT="/usr/local/apache2"
 -D SUEXEC_BIN="/usr/local/apache2/bin/suexec"
 -D DEFAULT_PIDLOG="logs/httpd.pid"
 -D DEFAULT_SCOREBOARD="logs/apache_runtime_status"
 -D DEFAULT_LOCKFILE="logs/accept.lock"
 -D DEFAULT_ERRORLOG="logs/error_log"
 -D AP_TYPES_CONFIG_FILE="conf/mime.types"
 -D SERVER_CONFIG_FILE="conf/httpd.conf"


Relevant settings in httpd.conf:
UserDir disabled
UserDir disabled root
[...]
<Directory /home/*/public_html>
     AllowOverride All
     Options -Indexes MultiViews ExecCGI SymLinksIfOwnerMatch IncludesNoExec
        Order allow,deny
        Allow from all
</Directory>
[...]
<Directory /home/sites/*/users/*/public_html>
    AllowOverride All
    Options -Indexes MultiViews ExecCGI SymLinksIfOwnerMatch IncludesNoExec
    Order Deny,Allow
    Allow from all
</Directory>


Relevant settings in my included virtualhosts.conf:
NameVirtualHost *:80

<VirtualHost *:80>
ServerName my.main.domain
UserDir disabled
UserDir disabled root
RewriteEngine on
RewriteOptions inherit
</VirtualHost>
[...]
<VirtualHost *:80>
ServerName www.sub.domain.ofmine
ServerAlias sub.domain.of.mine
ServerAdmin [EMAIL PROTECTED]
DocumentRoot /home/sites/s1234/users/u0001/public_html
UserDir disabled
UserDir disabled root
UserDir enabled s1234u0003
[...some other enabled UserDirs...]
SuexecUserGroup s1234u0074 s1234
RewriteEngine on
RewriteOptions inherit
[...some RewriteRules...]
</VirtualHost>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to