httpd-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 31302] New: - suexec doesn't execute commands if they're not in the current dir
Date Sun, 19 Sep 2004 21:36:12 GMT
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=31302>.
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=31302

suexec doesn't execute commands if they're not in the current dir

           Summary: suexec doesn't execute commands if they're not in the
                    current dir
           Product: Apache httpd-2.0
           Version: 2.0.50
          Platform: PC
        OS/Version: FreeBSD
            Status: NEW
          Severity: Critical
          Priority: Other
         Component: mod_include
        AssignedTo: bugs@httpd.apache.org
        ReportedBy: divisor@ad69.com


(I have apache 2.0.51 but can't select it from the version list)

I have the following problem:

There's some virtualhost with suexec enabled and vh directory with includes enabled.

I've created test.shtml page and trying to execute cgi command from it:

<!--#exec cmd="sample.cgi" -->
this one works ok

suexec log output:
uid: (1000/divisor) gid: (45000/45000) cmd: sample.cgi

then I move sample.cgi to the some dir i.e. called '5' and change test.shtml
content to

<!--#exec cmd="./5/sample.cgi" -->
this one stops working

suexec log output:
uid: (1000/divisor) gid: (45000/45000) cmd: sample.cgi
[2004-09-20 00:18:00]: cannot stat program: (sample.cgi)

but works fine if disable suexec in the virtualhost config.

virtualhost config example:

<VirtualHost 172.16.1.1:80>
ServerAdmin  webmaster@domain.com
DocumentRoot /home/divisor/domain.com
ServerName   domain.com
SuexecUserGroup divisor divisor
<DIRECTORY //home/divisor/domain.com>
OPTIONS  Indexes FollowSymLinks Includes
AllowOverride All
</DIRECTORY>
IndexOptions FancyIndexing
</VirtualHost>

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


Mime
View raw message