to create ~/ on non RH distros.
authorFaiyaz Ahmed <faiyaza@cs.princeton.edu>
Fri, 20 Jun 2008 15:34:06 +0000 (15:34 +0000)
committerFaiyaz Ahmed <faiyaza@cs.princeton.edu>
Fri, 20 Jun 2008 15:34:06 +0000 (15:34 +0000)
scripts/vuseradd

index 0034261..ba5c9cf 100755 (executable)
@@ -157,7 +157,7 @@ if [ -d "$__DEFAULT_VSERVERDIR/$NAME" ] ; then
 
     # Add user in vserver
     $_VSERVER $NAME start --rescue sh -c \
-       "groupadd -g $GROUPID $GROUPNAME ; useradd -u $USERID -g $GROUPID -p '' $NAME"
+       "groupadd -g $GROUPID $GROUPNAME ; useradd -m -u $USERID -g $GROUPID -p '' $NAME"
 
     # Stop the guest (since it's persistent)
     $_VSERVER $NAME stop