mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-11-09 18:47:16 -08:00
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>
This commit is contained in:
+1
-1
@@ -209,7 +209,7 @@ enewuser() {
|
||||
;;
|
||||
|
||||
*)
|
||||
useradd -N -r "${opts[@]}" "${euser}" || die
|
||||
useradd -M -N -r "${opts[@]}" "${euser}" || die
|
||||
;;
|
||||
esac
|
||||
|
||||
|
||||
Reference in New Issue
Block a user