New vsh as a wrapper to util-vserver
authorAndy Bavier <acb@cs.princeton.edu>
Fri, 24 Apr 2009 18:57:26 +0000 (18:57 +0000)
committerAndy Bavier <acb@cs.princeton.edu>
Fri, 24 Apr 2009 18:57:26 +0000 (18:57 +0000)
scripts/vsh [new file with mode: 0755]

diff --git a/scripts/vsh b/scripts/vsh
new file mode 100755 (executable)
index 0000000..3e49eba
--- /dev/null
@@ -0,0 +1,6 @@
+#!/bin/sh
+
+SLICE=`whoami`
+SLICEID=`id -u`
+
+sudo /usr/sbin/vserver $SLICE suexec $SLICEID /bin/bash "$@"