diff --git a/distribution/src/main/packaging/scripts/preinst b/distribution/src/main/packaging/scripts/preinst index 21c4f137c85..7ffbd3129a0 100644 --- a/distribution/src/main/packaging/scripts/preinst +++ b/distribution/src/main/packaging/scripts/preinst @@ -62,7 +62,7 @@ case "$1" in # Create elasticsearch user if not existing if ! id $ES_USER > /dev/null 2>&1 ; then echo -n "Creating $ES_USER user..." - useradd --system \ + useradd -r \ -M \ --gid "$ES_GROUP" \ --shell /sbin/nologin \