diff options
author | Tzafrir Cohen <tzafrir.cohen@xorcom.com> | 2011-12-19 16:39:43 +0000 |
---|---|---|
committer | Tzafrir Cohen <tzafrir.cohen@xorcom.com> | 2011-12-19 16:39:43 +0000 |
commit | b002651ff9c2e3dd6ed8764823ae7d96322513ed (patch) | |
tree | b37fcc5a7c204d860971cc7f0a25503bb479e63a /gui | |
parent | 3f90630218a0789627f0085489f081d62a2b4983 (diff) |
rapid-tunneling: no more rapid-tunneling "user"
* suders entry runs as root.
* use a sudoers.d file if possible (only thing in Debian).
* Version bumped to 1.12.
git-svn-id: svn+ssh://xorcom/home/svn/debs/components/rapid-tunneling@10209 283159da-0705-0410-b60c-f2062b4bb6ad
Diffstat (limited to 'gui')
-rw-r--r-- | gui/checkra.php | 4 | ||||
-rw-r--r-- | gui/index.php | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/gui/checkra.php b/gui/checkra.php index 13c2d94..4354b73 100644 --- a/gui/checkra.php +++ b/gui/checkra.php @@ -6,7 +6,7 @@ <?php function get_status() { - exec("sudo -H -u rapid-tunneling /usr/sbin/rapid-tunneling-status -p", $pid, $status); + exec("sudo -H /usr/sbin/rapid-tunneling-status -p", $pid, $status); if (count($pid) > 0) $pid = trim($pid[0]); else @@ -20,7 +20,7 @@ $pid = $res[0]; $status = $res[1]; if (isset($_REQUEST["action"]) && $_REQUEST["action"] == "disconnect" && $pid != "" && ($status == 0 || $status == 1)) { // stop it - exec("sudo -H -u rapid-tunneling /usr/sbin/rapid-tunneling-status -s"); + exec("sudo -H /usr/sbin/rapid-tunneling-status -s"); $res = get_status(); $pid = $res[0]; $status = $res[1]; diff --git a/gui/index.php b/gui/index.php index 423db56..7f3eecf 100644 --- a/gui/index.php +++ b/gui/index.php @@ -42,7 +42,7 @@ if (isset($_REQUEST["submit"])) break; } # FIXME: insecure temporary file /tmp/ra.log - system("sudo -H -u rapid-tunneling rapid-tunneling ". + system("sudo -H rapid-tunneling ". $_FILES["filename"]["tmp_name"]." >/tmp/ra.log 2>&1", $ret); if ($ret != 0) $error = "Invalid or corrupt file. Please try again."; |