Added -m option for user creation.

This commit is contained in:
Christian P. MOMON 2012-09-17 16:41:39 +02:00
parent 280280b494
commit 1e5127a009

View file

@ -144,7 +144,7 @@ public class Unix
try
{
logger.info("Creating user account for [" + login + "].");
CmdExec.run(SUDO, "/usr/sbin/useradd", "-c", name, "-d", home, login);
CmdExec.run(SUDO, "/usr/sbin/useradd", "-m", "-c", name, "-d", home, login);
EtcPasswdFile.instance().update();
logger.info("User account created for [" + login + "].");
}