I accidentally removed sudo privileges from my only user and didn’t unlock a root account before doing it. I know I can unlock it using a live disk, but there is a lack of clarity in one step.
I am told to follow this doc to unlock the bootloader and later set a root password as in this doc.
The question is, do I need to
sync && exit before setting the password for a root user?