Apache suEXEC issues

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: Frooninckx Craig - cfroon
Date:  
Subject: Apache suEXEC issues
This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.

------_=_NextPart_000_01C1873D.4F770700
Content-Type: multipart/alternative;
    boundary="----_=_NextPart_001_01C1873D.4F770700"



------_=_NextPart_001_01C1873D.4F770700
Content-Type: text/plain;
    charset="iso-8859-1"


I'm working on a project that requires apache to su to another user to
execute some cgi scripts and build some files with a particular id and
group. I'm using virtual hosting within Apache (port 8080) for these
scripts, I compiled and included the suEXEC in this installation, the
virtual host works fine with html. When I go to execute the CGI, I get
"cannot get current working directory" in the suexec log when I have a User
and Group attributes in the virtual host parameter. This is the strange
part, when I comment out the Group attribute, I get command not in the
docroot. Which it is. Any ideas??

Craig

------_=_NextPart_001_01C1873D.4F770700
Content-Type: text/html;
    charset="iso-8859-1"


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">


<STYLE>BODY {
    MARGIN-TOP: 0em; FONT-SIZE: 12pt; MARGIN-BOTTOM: 0em; COLOR: #000000; FONT-FAMILY: "Arial"
}
P.msoNormal {
    MARGIN-TOP: 0em; FONT-SIZE: 12pt; MARGIN-BOTTOM: 0em; COLOR: #000000; FONT-FAMILY: "Arial"
}
LI.msoNormal {
    MARGIN-TOP: 0em; FONT-SIZE: 12pt; MARGIN-BOTTOM: 0em; COLOR: #000000; FONT-FAMILY: "Arial"
}
PRE {
    MARGIN-TOP: 0em; FONT-SIZE: 12pt; MARGIN-BOTTOM: 0em; COLOR: #000000; FONT-FAMILY: "Arial"
}
BLOCKQUOTE {
    MARGIN-TOP: 0em; FONT-SIZE: 12pt; MARGIN-BOTTOM: 0em; COLOR: #000000; FONT-FAMILY: "Arial"
}
A {
    MARGIN-TOP: 0em; FONT-SIZE: 12pt; MARGIN-BOTTOM: 0em; COLOR: #000000; FONT-FAMILY: "Arial"
}
MENU {
    MARGIN-TOP: 0em; FONT-SIZE: 12pt; MARGIN-BOTTOM: 0em; COLOR: #000000; FONT-FAMILY: "Arial"
}
DD {
    MARGIN-TOP: 0em; FONT-SIZE: 12pt; MARGIN-BOTTOM: 0em; COLOR: #000000; FONT-FAMILY: "Arial"
}
UL {
    MARGIN-TOP: 0em; FONT-SIZE: 12pt; MARGIN-BOTTOM: 0em; COLOR: #000000; FONT-FAMILY: "Arial"
}
DT {
    MARGIN-TOP: 0em; FONT-SIZE: 12pt; MARGIN-BOTTOM: 0em; COLOR: #000000; FONT-FAMILY: "Arial"
}
DIR {
    MARGIN-TOP: 0em; FONT-SIZE: 12pt; MARGIN-BOTTOM: 0em; COLOR: #000000; FONT-FAMILY: "Arial"
}
ADDRESS {
    MARGIN-TOP: 0em; FONT-SIZE: 12pt; MARGIN-BOTTOM: 0em; COLOR: #000000; FONT-FAMILY: "Arial"
}
H1 {
    MARGIN-TOP: 0em; FONT-SIZE: 12pt; MARGIN-BOTTOM: 0em; COLOR: #000000; FONT-FAMILY: "Arial"
}
H2 {
    MARGIN-TOP: 0em; FONT-SIZE: 12pt; MARGIN-BOTTOM: 0em; COLOR: #000000; FONT-FAMILY: "Arial"
}
H3 {
    MARGIN-TOP: 0em; FONT-SIZE: 12pt; MARGIN-BOTTOM: 0em; COLOR: #000000; FONT-FAMILY: "Arial"
}
H4 {
    MARGIN-TOP: 0em; FONT-SIZE: 12pt; MARGIN-BOTTOM: 0em; COLOR: #000000; FONT-FAMILY: "Arial"
}
H5 {
    MARGIN-TOP: 0em; FONT-SIZE: 12pt; MARGIN-BOTTOM: 0em; COLOR: #000000; FONT-FAMILY: "Arial"
}
H6 {
    MARGIN-TOP: 0em; FONT-SIZE: 12pt; MARGIN-BOTTOM: 0em; COLOR: #000000; FONT-FAMILY: "Arial"
}
HR {
    MARGIN-TOP: 0em; FONT-SIZE: 12pt; MARGIN-BOTTOM: 0em; COLOR: #000000; FONT-FAMILY: "Arial"
}
</STYLE>


<META content="MSHTML 5.50.4522.1800" name=GENERATOR></HEAD>
<BODY background=cid:908145220@17122001-2380>
<DIV><SPAN class=908145220-17122001><FONT face='"Arial"'>I'm working on a
project that requires apache to su to another user to execute some cgi scripts
and build some files with a particular id and group.&nbsp; I'm using virtual
hosting within Apache (port 8080) for these scripts, I compiled and included the
suEXEC in this installation, the virtual host works fine with html.&nbsp; When I
go to execute the CGI, I get "cannot get current working directory" in the
suexec log when I have a User and Group attributes in the virtual host
parameter.&nbsp; This is the strange part, when I comment out the Group
attribute, I get&nbsp;command not in the docroot.&nbsp; Which it is.&nbsp; Any
ideas??</FONT></SPAN></DIV>
<DIV><SPAN class=908145220-17122001></SPAN>&nbsp;</DIV>
<DIV><SPAN class=908145220-17122001><FONT
face='"Arial"'>Craig</FONT></SPAN></DIV></BODY></HTML>

------_=_NextPart_001_01C1873D.4F770700--

------_=_NextPart_000_01C1873D.4F770700
Content-Type: image/gif;
    name="tech.gif"
Content-Transfer-Encoding: base64
Content-Disposition: attachment;
    filename="tech.gif"
Content-ID: <908145220@17122001-2380>


R0lGODlhFAAUAPcAAP//////zP//mf//Zv//M///AP/M///MzP/Mmf/MZv/MM//MAP+Z//+ZzP+Z
mf+ZZv+ZM/+ZAP9m//9mzP9mmf9mZv9mM/9mAP8z//8zzP8zmf8zZv8zM/8zAP8A//8AzP8Amf8A
Zv8AM/8AAMz//8z/zMz/mcz/Zsz/M8z/AMzM/8zMzMzMmczMZszMM8zMAMyZ/8yZzMyZmcyZZsyZ
M8yZAMxm/8xmzMxmmcxmZsxmM8xmAMwz/8wzzMwzmcwzZswzM8wzAMwA/8wAzMwAmcwAZswAM8wA
AJn//5n/zJn/mZn/Zpn/M5n/AJnM/5nMzJnMmZnMZpnMM5nMAJmZ/5mZzJmZmZmZZpmZM5mZAJlm
/5lmzJlmmZlmZplmM5lmAJkz/5kzzJkzmZkzZpkzM5kzAJkA/5kAzJkAmZkAZpkA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