From f048c8be1e7636df238e616b41a123ada2049759 Mon Sep 17 00:00:00 2001 From: Adin Scannell Date: Wed, 28 Aug 2019 22:34:45 -0700 Subject: Fix permissions on .ssh files PiperOrigin-RevId: 266066839 --- kokoro/ubuntu1604/40_kokoro.sh | 1 + 1 file changed, 1 insertion(+) 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. -- cgit v1.2.3