From 0135c364a39578b1cf56cf168774daaf3a5a848d Mon Sep 17 00:00:00 2001 From: root Date: Sat, 9 Apr 2011 00:23:59 -1100 Subject: noise-as-{shack -> user} --- noise-as-shack | 4 ---- noise-as-user | 4 ++++ noise-server | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) delete mode 100755 noise-as-shack create mode 100755 noise-as-user 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" -- cgit v1.2.3