summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkrebs <krebs@UTART>2011-05-05 11:14:26 +0200
committerkrebs <krebs@UTART>2011-05-05 11:14:26 +0200
commit7e11a0b522704c94094b8efc7f4c3fed00fea760 (patch)
treed550d7ae4a6c0f58c00dab47831f9a53ab177efe
parent55c4074c34a9d144f85389f2d53367fef1c30852 (diff)
noise-as-user: s/sudo/su/
-rwxr-xr-xmodules/noise/noise-as-user2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/noise/noise-as-user b/modules/noise/noise-as-user
index 15af5f03..21e4102f 100755
--- a/modules/noise/noise-as-user
+++ b/modules/noise/noise-as-user
@@ -1,4 +1,4 @@
#! /bin/sh
qname="`readlink -f "$0"`"
dirname="`dirname "$qname"`"
-exec sudo -u noise env -i TCPREMOTEIP="$TCPREMOTEIP" "$dirname/noise"
+exec su noise -c "env -i TCPREMOTEIP='$TCPREMOTEIP' '$dirname/noise'"