From b8d90f2f8f3544bbe1b2d67ef56f6d367bc4cd50 Mon Sep 17 00:00:00 2001 From: Jeffrey Paul Date: Sun, 4 Aug 2019 03:12:26 -0700 Subject: [PATCH] set up working user --- run.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/run.sh b/run.sh index ef61fa8..716b3b6 100644 --- a/run.sh +++ b/run.sh @@ -1,6 +1,8 @@ #!/bin/bash export DEBIAN_FRONTEND=noninteractive +USERNAME="sneak" + set -x set -e exec 1> >(tee -a /var/log/sandboxbuild.log) 2>&1 @@ -207,3 +209,7 @@ PIP_PKGS=" for PKG in $PIP_PKGS; do pip3 install $PKG done + +groupadd -g 1000 $USERNAME +useradd -u 1000 -g 1000 -s /bin/bash $USERNAME +usermod -p '*' $USERNAME