From 1e5127a0094ef8e0c296b427b0218f3032d2191f Mon Sep 17 00:00:00 2001 From: "Christian P. MOMON" Date: Mon, 17 Sep 2012 16:41:39 +0200 Subject: [PATCH] Added -m option for user creation. --- src/fr/devinsy/util/unix/Unix.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/fr/devinsy/util/unix/Unix.java b/src/fr/devinsy/util/unix/Unix.java index 6430214..8c1a34b 100644 --- a/src/fr/devinsy/util/unix/Unix.java +++ b/src/fr/devinsy/util/unix/Unix.java @@ -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 + "]."); }