From 34ed3289ba0de0ab46e88d44de50ed2ad47b83d6 Mon Sep 17 00:00:00 2001 From: Jacob Babor Date: Mon, 29 Aug 2022 12:40:17 -0500 Subject: [PATCH] Set UID/GID restrictions for ansible user in contrib/bootstrap.sh --- contrib/bootstrap.sh | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/contrib/bootstrap.sh b/contrib/bootstrap.sh index 8f7de25..9113d9f 100755 --- a/contrib/bootstrap.sh +++ b/contrib/bootstrap.sh @@ -20,7 +20,15 @@ fi echo "Adding ansible user..." -if ! useradd ansible > /dev/null 2>&1; then +if ! \ + useradd \ + -K UID_MIN=600 \ + -K UID_MAX=700 \ + -K GID_MIN=600 \ + -K GID_MAX=700 \ + ansible \ + > /dev/null 2>&1 + then err=$? case $err in 0)