On Tue, Nov 26, 2019 at 9:45 am, Dominique Martinet
<dominique.martinet(a)cea.fr> wrote:
They just expected no root password = no login possible, but it
turns
out 'su' just gave out a root shell with no password entered...
It depends on whether the account is locked or not. In Workstation we
default to locked passwordless root, equivalent to:
# passwd -d root
# passwd -l root
which is what your association really wanted to do with their VMs: no
root password, and cannot log in as root. They forgot the 'passwd -l',
without which you're able to log in as root with no password. ('passwd
-d' removes the password and unlocks the account; 'passwd -l' locks it.)
Michael