summaryrefslogtreecommitdiffhomepage
path: root/kokoro
diff options
context:
space:
mode:
authorAdin Scannell <ascannell@google.com>2019-08-28 22:34:45 -0700
committergVisor bot <gvisor-bot@google.com>2019-08-28 22:36:16 -0700
commitf048c8be1e7636df238e616b41a123ada2049759 (patch)
tree320356359d1ef4aa35b3b8e2c5d19c9849497404 /kokoro
parent06ae36185ec0a68b4d191ba1c86d4dc250ac2b38 (diff)
Fix permissions on .ssh files
PiperOrigin-RevId: 266066839
Diffstat (limited to 'kokoro')
-rwxr-xr-xkokoro/ubuntu1604/40_kokoro.sh1
1 files changed, 1 insertions, 0 deletions
diff --git a/kokoro/ubuntu1604/40_kokoro.sh b/kokoro/ubuntu1604/40_kokoro.sh
index 27366e83d..1b1ae5de4 100755
--- a/kokoro/ubuntu1604/40_kokoro.sh
+++ b/kokoro/ubuntu1604/40_kokoro.sh
@@ -31,6 +31,7 @@ if useradd -c "kbuilder user" -m -s /bin/bash kbuilder; then
mkdir -p ~kbuilder/.ssh
(IFS=$'\n'; echo "${ssh_public_keys[*]}") > ~kbuilder/.ssh/authorized_keys
chmod 0600 ~kbuilder/.ssh/authorized_keys
+ chown -R kbuilder ~kbuilder/.ssh
fi
# Give passwordless sudo access.