Set root password to 'foobar' in test Vm
TestAccounts.testRootLogin logs in as root.
This commit is contained in:
parent
20d6bfd41c
commit
14a0914014
@ -20,6 +20,9 @@ fi
|
|||||||
# make libpwquality less aggressive, so that our "foobar" password works
|
# make libpwquality less aggressive, so that our "foobar" password works
|
||||||
printf 'dictcheck = 0\nminlen = 6\n' >> /etc/security/pwquality.conf
|
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
|
# create user account for logging in
|
||||||
if ! id admin 2>/dev/null; then
|
if ! id admin 2>/dev/null; then
|
||||||
useradd -c Administrator -G wheel admin
|
useradd -c Administrator -G wheel admin
|
||||||
|
Loading…
Reference in New Issue
Block a user