aboutsummaryrefslogtreecommitdiff
path: root/bootstrap
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2017-03-31 14:07:06 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2017-03-31 14:07:06 +0200
commitce1b8892253d49b894e13215fc4b1415bfc1df29 (patch)
tree7fba3de6170fa350249b33eeb61aff8bce465db3 /bootstrap
parentf9580fb6883e701dbdb4c077036a1169fb066bb8 (diff)
Fix build users' uid and gid
Diffstat (limited to 'bootstrap')
-rwxr-xr-xbootstrap6
1 files changed, 5 insertions, 1 deletions
diff --git a/bootstrap b/bootstrap
index ada94c8..8fdfd8a 100755
--- a/bootstrap
+++ b/bootstrap
@@ -288,7 +288,11 @@ set -x
# Create the build user, /build home directory. Make a password-less sudo'er.
#
-adduser --home /build --gecos "" --disabled-password build
+# Note that we force UID/GID to specific numbers to make sure they are
+# consistent across builds.
+#
+addgroup --gid 2000 build
+adduser --uid 2000 --gid 2000 --home /build --gecos "" --disabled-password build
echo "build ALL=(ALL) NOPASSWD:ALL" >/etc/sudoers.d/build
chmod 0440 /etc/sudoers.d/build