test: Set root password to 'foobar' in test Vm
This commit is contained in:
parent
a54f341f46
commit
94a9748f3f
@ -23,6 +23,9 @@ if ! id admin 2>/dev/null; then
|
|||||||
echo admin:foobar | chpasswd
|
echo admin:foobar | chpasswd
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# set root's password
|
||||||
|
echo root:foobar | chpasswd
|
||||||
|
|
||||||
# avoid sudo lecture during tests
|
# avoid sudo lecture during tests
|
||||||
su -c 'echo foobar | sudo --stdin whoami' - admin
|
su -c 'echo foobar | sudo --stdin whoami' - admin
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user