From 54cd635d6c20c34dfaae200d02b91dfccc21afe4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20H=C3=BCbner?= Date: Sat, 25 Nov 2023 23:05:03 +0100 Subject: [PATCH] keys owner --- installer/late.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/installer/late.sh b/installer/late.sh index 3c41081..60b0b3e 100755 --- a/installer/late.sh +++ b/installer/late.sh @@ -35,6 +35,7 @@ mkdir -p "${prefix}/root/.ssh" chmod 700 "${prefix}/root/.ssh" cp -a "/cdrom/configs/authorized_keys" "${prefix}/root/.ssh/authorized_keys" chmod 640 "${prefix}/root/.ssh/authorized_keys" +chown "0:0" "${prefix}/root/.ssh/authorized_keys" # authorize ssh keys for admin user mkdir -p "${prefix}/home/${admin}/.ssh" chmod 700 "${prefix}/home/${admin}/.ssh"