From 14a0914014370638cd27f962ea87a019416d950e Mon Sep 17 00:00:00 2001 From: Katerina Koukiou Date: Mon, 16 Nov 2020 11:20:42 +0100 Subject: [PATCH] Set root password to 'foobar' in test Vm TestAccounts.testRootLogin logs in as root. --- tests/verify.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/verify.sh b/tests/verify.sh index 88e354b..a1e0a66 100755 --- a/tests/verify.sh +++ b/tests/verify.sh @@ -20,6 +20,9 @@ fi # make libpwquality less aggressive, so that our "foobar" password works printf 'dictcheck = 0\nminlen = 6\n' >> /etc/security/pwquality.conf +# set root password for logging in +echo root:foobar | chpasswd + # create user account for logging in if ! id admin 2>/dev/null; then useradd -c Administrator -G wheel admin