Added -m option for user creation.
This commit is contained in:
parent
280280b494
commit
1e5127a009
1 changed files with 1 additions and 1 deletions
|
@ -144,7 +144,7 @@ public class Unix
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
logger.info("Creating user account for [" + login + "].");
|
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();
|
EtcPasswdFile.instance().update();
|
||||||
logger.info("User account created for [" + login + "].");
|
logger.info("User account created for [" + login + "].");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue