From 890793068c43b13f9c6e45afde0c7ff975dd4402 Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Wed, 15 Apr 2020 16:19:23 -0400 Subject: [PATCH] Have prepivot stage accounts Carry forward the ssh key and disable passwords so that ssh may safely be enabled during install. --- misc/confluent-prepivot.sh.rh8 | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/misc/confluent-prepivot.sh.rh8 b/misc/confluent-prepivot.sh.rh8 index 3cf93cc6..6bdbdcf3 100644 --- a/misc/confluent-prepivot.sh.rh8 +++ b/misc/confluent-prepivot.sh.rh8 @@ -5,3 +5,9 @@ while [ -h $BUNDLENAME ]; do done cat /etc/pki/tls/certs/ca-bundle.crt > $BUNDLENAME +sed -i 's/install::/install:*:/' /sysroot/etc/shadow +sed -i 's/root::/root:*:/' /sysroot/etc/shadow +mkdir -p /sysroot/root/.ssh +chmod 700 /sysroot/root/.ssh +cp /ssh/authorized_keys /sysroot/root/.ssh +chmod 600 /sysroot/root/.ssh/authorized_keys \ No newline at end of file