to create ~/ on non RH distros.
[util-vserver-pl.git] / 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