From: Michał Górny Date: Wed, 29 May 2019 17:45:01 +0000 (+0200) Subject: user.eclass: Prevent automated home creation in useradd X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=b2cf1be41cea95c121c3b86fb43e8939d2bcb4c8;p=gentoo.git 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 --- 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