Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
emulab
emulab-devel
Commits
498f2452
Commit
498f2452
authored
Dec 01, 2000
by
Leigh B. Stoller
Browse files
Some very minor changes to SUEXEC stuff.
parent
b7505f68
Changes
1
Hide whitespace changes
Inline
Side-by-side
www/defs.php3
View file @
498f2452
...
...
@@ -16,11 +16,13 @@ $TBMAIL_APPROVE = "Testbed Approval <testbed-approval@flux.cs.utah.edu>";
$TBDIR
=
"/usr/testbed/"
;
$TBWWW_DIR
=
"
$TBDIR
"
.
"www/"
;
$TBBIN_DIR
=
"
$TBDIR
"
.
"bin/"
;
$TBSUEXEC_PATH
=
"
$TBBIN_DIR
/suexec"
;
$TBLIST_DIR
=
"/usr/testbed/www/maillist"
;
$TBLIST_LEADERS
=
"
$TBLIST_DIR
"
.
"/leaders.txt"
;
$TBLIST_USERS
=
"
$TBLIST_DIR
"
.
"/users.txt"
;
$TBPROJ_DIR
=
"/proj"
;
$TBUSER_DIR
=
"/users/"
;
$TBNSSUBDIR
=
"nsdir"
;
...
...
@@ -160,11 +162,11 @@ function PAGEFOOTER() {
# Run a program as a user.
#
function
SUEXEC
(
$uid
,
$gid
,
$cmdandargs
,
$die
)
{
global
$TB
BIN_DIR
;
global
$TB
SUEXEC_PATH
;
$output
=
array
();
$retval
=
0
;
$result
=
exec
(
"
$TB
BIN_DIR
/suexec
$uid
$gid
$cmdandargs
"
,
$result
=
exec
(
"
$TB
SUEXEC_PATH
$uid
$gid
$cmdandargs
"
,
$output
,
$retval
);
if
(
$retval
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment