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
|
||||
{
|
||||
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 + "].");
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue