diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2017-03-31 14:07:06 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2017-03-31 14:07:06 +0200 |
commit | ce1b8892253d49b894e13215fc4b1415bfc1df29 (patch) | |
tree | 7fba3de6170fa350249b33eeb61aff8bce465db3 /bootstrap | |
parent | f9580fb6883e701dbdb4c077036a1169fb066bb8 (diff) |
Fix build users' uid and gid
Diffstat (limited to 'bootstrap')
-rwxr-xr-x | bootstrap | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -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 |