Let's hope the M at least has a root password.
But you are right, that would be nasty. In my time the LAMP tutorials used the distribution packages so they always had sensible defaults.