Have a VirtualBox Ubuntu guest (14.04) used for the sake of testing only.
The root user has its own password, so I can login as root in a separate terminal (su -), or directly from a login session (eg after Ctrl-Alt-F4).
$ su -
Password: <current root password>
# echo Works!
Since it is a VB testing system, and the root user does not need any security, I want to be able to su - or login as root quickly, i.e. without root having a password.
So, tried as root
# passwd -d root
to remove the root password - it seems to work according to /etc/shadow (::)
root::16304:0:99999:7:::
but when trying to su -, it asks for a password, I just press enter (no password)
$ su -
Password:
su: Authentication failure
but it doesn't su.
There has to be a setting somewhere to allow root to login/su without password.
Where would that be?