From: Christian Heller <c.heller@plomlompom.de>
Date: Tue, 30 Jun 2020 19:33:40 +0000 (+0200)
Subject: Fix.
X-Git-Url: https://plomlompom.com/repos/%7B%7Bdb.prefix%7D%7D/%7B%7B%20web_path%20%7D%7D/decks/%7B%7Bprefix%7D%7D/conditions?a=commitdiff_plain;h=31071ce90ec8ee672831349fb456f3e46292ad2c;p=config

Fix.
---

diff --git a/buster/setup_scripts/init_user_and_keybased_login.sh b/buster/setup_scripts/init_user_and_keybased_login.sh
index 73379c4..298bafa 100755
--- a/buster/setup_scripts/init_user_and_keybased_login.sh
+++ b/buster/setup_scripts/init_user_and_keybased_login.sh
@@ -27,12 +27,16 @@ server="$1"
 
 # Ask for root password only once, sshpass will re-use it then often.
 stty -echo
-printf "Server root password: "
+printf "(Old) server root password: "
 read PW_ROOT
 stty echo
 printf "\n"
 export SSHPASS="${PW_ROOT}"
 
+# This will be used to log-in as root from plom account.
+echo 'Asking for new root password.'
+ssh root@"${server}" "passwd"
+
 # Create user plom, and his ~/.ssh/authorized_keys based on the local
 # ~/.ssh/id_rsa.pub; ensure the result has proper permissions and
 # ownerships. Then disable root and pw login by copying over the
diff --git a/buster/setup_scripts/init_user_login.sh b/buster/setup_scripts/init_user_login.sh
index 08598ce..7f3536a 100755
--- a/buster/setup_scripts/init_user_login.sh
+++ b/buster/setup_scripts/init_user_login.sh
@@ -20,7 +20,7 @@ eval $(ssh-agent)
 ssh-add
 
 # This will be used to log-in as root from plom account.
-echo 'Asking for root password.'
+echo 'Asking for new root password.'
 ssh root@"${server}" "passwd"
 
 # Set up plom's ~/.ssh/authorized_keys from root's.