Okay, so if you don't have access to the root user password, you need to go to the grub
boot menu. Here you can see it. Let's press E, and to the end of the line that starts
the Linux kernel, you need init is slash bin slash bash. Next, Ctrl X to boot. And this
will drop you into a bash shell. So there it is, and as you see, no need to enter any
root user password. Now we need mount minus o remount comma rw all slash to enter the
root file system in read-writable mode, and then pass wd to reset the password. Going
once, going twice, and that should be doing it. Next thing, you need to make sure that
Azure Linux is going to re-label your entire file system after booting. So use touch slash
dot auto re-label to take care of that. And finally, exec slash user slash lib slash systemd
slash systemd. And that will replace the current bash shell with systemd, re-label the file
system, then it will boot again, and then we're all good. So now back at the regular
boot prompt, let's try login as user root with the password that was just set. And as
you can see, it works.