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:
00ef3bf
)
Stop the guest after creating the user/group in it.
author
Daniel Hokka Zakrisson
<dhokka@cs.princeton.edu>
Thu, 28 Feb 2008 18:30:09 +0000
(18:30 +0000)
committer
Daniel Hokka Zakrisson
<dhokka@cs.princeton.edu>
Thu, 28 Feb 2008 18:30:09 +0000
(18:30 +0000)
scripts/vuseradd
patch
|
blob
|
history
diff --git
a/scripts/vuseradd
b/scripts/vuseradd
index
fa58015
..
0034261
100755
(executable)
--- a/
scripts/vuseradd
+++ b/
scripts/vuseradd
@@
-156,9
+156,12
@@
if [ -d "$__DEFAULT_VSERVERDIR/$NAME" ] ; then
chmod 755 "$__DEFAULT_VSERVERDIR/$NAME"
# Add user in vserver
- $_VSERVER
----insecure $NAME suexec root
sh -c \
+ $_VSERVER
$NAME start --rescue
sh -c \
"groupadd -g $GROUPID $GROUPNAME ; useradd -u $USERID -g $GROUPID -p '' $NAME"
+ # Stop the guest (since it's persistent)
+ $_VSERVER $NAME stop
+
# Add an unrestricted entry to /etc/sudoers file
if [ -f "$__DEFAULT_VSERVERDIR/$NAME/etc/sudoers" ] && \
! grep -q "^$NAME" "$__DEFAULT_VSERVERDIR/$NAME/etc/sudoers" ; then