git://git.onelab.eu
/
util-vserver-pl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
518b3a2
)
New vsh as a wrapper to util-vserver
author
Andy Bavier
<acb@cs.princeton.edu>
Fri, 24 Apr 2009 18:57:26 +0000
(18:57 +0000)
committer
Andy Bavier
<acb@cs.princeton.edu>
Fri, 24 Apr 2009 18:57:26 +0000
(18:57 +0000)
scripts/vsh
[new file with mode: 0755]
patch
|
blob
diff --git a/scripts/vsh
b/scripts/vsh
new file mode 100755
(executable)
index 0000000..
3e49eba
--- /dev/null
+++ b/
scripts/vsh
@@ -0,0
+1,6
@@
+#!/bin/sh
+
+SLICE=`whoami`
+SLICEID=`id -u`
+
+sudo /usr/sbin/vserver $SLICE suexec $SLICEID /bin/bash "$@"