Update your primary login details.
Update your primary login details.
The sudo feature is active and the default state of Su is off in Ubuntu. It’s not ideal, so consider using command sudo -i if you can’t log in there; otherwise you might need to reformat your drive and find a workaround. The chntpw daemon is useful for resetting passwords when forgotten, though it’s mainly used on Windows partitions. I recommend reinstalling everything for the quickest fix. Chrooting works well, but you’ll need to locate the correct links to adjust passwords—it can be tricky. Are you using MBR, a GTP, or EFI boot? If so, a fresh install should help. If you’re stuck with EFI setup, I can guide you through it and assist with booting again. Grub usually resides in the Master Boot Record or a dedicated partition, sometimes even pointing to EFI-Bios for booting. Choose a distro and reinstall; it’s straightforward once you get started. If you can’t access user space, creating a live USB is a reliable backup method. For Windows PCs, Rufus works well, and you’ll need root privileges to run the dd command—search for setup instructions quickly. If you boot from a live USB, simply enter the default password (often root or your preferred admin). After that, you can back up important data to an external drive or another partition. I prefer keeping my home and root partitions separate for security, though encryption adds integrity but can be complex.