diff options
author | root <root@krebs> | 2011-04-09 00:23:59 -1100 |
---|---|---|
committer | root <root@krebs> | 2011-04-09 00:23:59 -1100 |
commit | 0135c364a39578b1cf56cf168774daaf3a5a848d (patch) | |
tree | ac667adcd0228e136dfd034bf83b67ab5cfd2a3e | |
parent | c142d2c760ad2ebc65aaa8164ef875677e669383 (diff) |
noise-as-{shack -> user}
-rwxr-xr-x | noise-as-shack | 4 | ||||
-rwxr-xr-x | noise-as-user | 4 | ||||
-rwxr-xr-x | noise-server | 2 |
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" |