summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xnoise-as-shack4
-rwxr-xr-xnoise-as-user4
-rwxr-xr-xnoise-server2
3 files changed, 5 insertions, 5 deletions
diff --git a/noise-as-shack b/noise-as-shack
deleted file mode 100755
index 10ae3c1c..00000000
--- a/noise-as-shack
+++ /dev/null
@@ -1,4 +0,0 @@
-#! /bin/sh
-qname="`readlink -f "$0"`"
-dirname="`dirname "$qname"`"
-exec su - shack -c "env -i TCPREMOTEIP=\"$TCPREMOTEIP\" \"$dirname/noise\""
diff --git a/noise-as-user b/noise-as-user
new file mode 100755
index 00000000..15af5f03
--- /dev/null
+++ b/noise-as-user
@@ -0,0 +1,4 @@
+#! /bin/sh
+qname="`readlink -f "$0"`"
+dirname="`dirname "$qname"`"
+exec sudo -u noise env -i TCPREMOTEIP="$TCPREMOTEIP" "$dirname/noise"
diff --git a/noise-server b/noise-server
index 2012bbb5..0df803b1 100755
--- a/noise-server
+++ b/noise-server
@@ -1,4 +1,4 @@
#! /bin/sh
qname="`readlink -f "$0"`"
dirname="`dirname "$qname"`"
-exec tcpserver -c 423 -t 2 -D 0.0.0.0 23 "$dirname/noise-as-shack"
+exec tcpserver -c 423 -t 2 -D 0.0.0.0 23 "$dirname/noise-as-user"