Set root password to 'foobar' in test Vm

TestAccounts.testRootLogin logs in as root.
This commit is contained in:
Katerina Koukiou 2020-11-16 11:20:42 +01:00
parent 20d6bfd41c
commit 14a0914014

View File

@ -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