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 a6c6ad82b7a0..6be76666d9f3 100644 --- a/eclass/user.eclass +++ b/eclass/user.eclass @@ -246,7 +246,7 @@ enewuser() { ;; *) - useradd -N -r "${opts[@]}" "${euser}" || die + useradd -M -N -r "${opts[@]}" "${euser}" || die ;; esac -- 2.22.0.rc1
