From 881d518a1c8fcf794c9bd6f4e2051fb4f3ad73cc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?H=C3=A5vard=20Pettersen?= Date: Mon, 3 Mar 2025 11:24:07 +0100 Subject: [PATCH] fix ownership of authorized_keys inside container --- dev/almalinux-8/configure-container.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/dev/almalinux-8/configure-container.sh b/dev/almalinux-8/configure-container.sh index 9c6b8b4..79a4fee 100755 --- a/dev/almalinux-8/configure-container.sh +++ b/dev/almalinux-8/configure-container.sh @@ -33,6 +33,7 @@ else echo "ERROR: No authorized keys found in $HOME/.ssh" exit 1 fi +$engine exec -it ${container_name} bash -c "chown $(id -un) /home/$(id -un)/.ssh/authorized_keys" # Set environment variables $engine exec -u "$(id -u):$(id -g)" -it $container_name bash -c \