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 <[email protected]> --- eclass/user.eclass | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.22.0.rc3
