summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2019-05-29 19:45:01 +0200
committerMichał Górny <mgorny@gentoo.org>2019-06-20 10:16:38 +0200
commitb2cf1be41cea95c121c3b86fb43e8939d2bcb4c8 (patch)
tree59912ea752fc603b0dee266b1289c7a1d6f20b36
parentuser.eclass: Do not create user-group automatically (diff)
downloadgentoo-b2cf1be41cea95c121c3b86fb43e8939d2bcb4c8.tar.gz
gentoo-b2cf1be41cea95c121c3b86fb43e8939d2bcb4c8.tar.bz2
gentoo-b2cf1be41cea95c121c3b86fb43e8939d2bcb4c8.zip
user.eclass: Prevent automated home creation in useradd
Pass '-M' to prevent useradd from automatically creating the home directory (depending on system configuration). We create the home directory ourselves anyway, and we have better control over how it's created this way. Signed-off-by: Michał Górny <mgorny@gentoo.org>
-rw-r--r--eclass/user.eclass2
1 files changed, 1 insertions, 1 deletions
diff --git a/eclass/user.eclass b/eclass/user.eclass
index 8935c338e1bb..a24920af13f1 100644
--- a/eclass/user.eclass
+++ b/eclass/user.eclass
@@ -209,7 +209,7 @@ enewuser() {
;;
*)
- useradd -N -r "${opts[@]}" "${euser}" || die
+ useradd -M -N -r "${opts[@]}" "${euser}" || die
;;
esac