<!DOCTYPE html><html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /></head><body><div data-crea="font-wrapper" style="font-family: Tahoma; font-size: 16px; direction: ltr"><div>Greetings,</div><div><br></div><div>I recently recovered an Ubuntu 21.04 box I had set up back then, and then "leased" to a relative.</div><div>I will upgrade it asap to 22.04 LTS, BUT, for reasons not relevant here, while doing backups and</div><div>generally "cleaning up" that box:</div><div><br></div><div>1) I made a mistake, issuing a chown command in /, thus messing up, among other things,</div><div> ownership of critical files in /etc/, so now sudo does not work anymore</div><div><br></div><div>2) AND I forgot the root password, so I cannot just "su" and fix those ownerships manually</div><div><br></div><div>3) but again, I have to fix those ownerships and other stuff, and back up before upgrading.<br></div><div><br></div><div>I know I could boot a live distro and work from there but I have very slow connectivity right now,</div><div>AND I want to refresh my skills for these situations anyway, just to have more alternatives.</div><div><br></div><div>So, since I CANNOT risk to mess up that box even more, I would really appreciate a confirmation</div><div>that the root password reset procedure described here:<br></div><br><div><a href="https://unixcop.com/how-to-reset-root-password-on-ubuntu-21-04/" style="cursor: inherit;">https://unixcop.com/how-to-reset-root-password-on-ubuntu-21-04/</a></div><div><br></div><div>is 10% complete and correct for Ubuntu 21.04, and if there are better ways to reset a root password at the prompt, without using</div><div>a live distro.</div><div><br></div><div>TIA,<br></div>Marco<br><div><br></div><div><br></div><div><div data-crea="font-wrapper" style="font-family: Tahoma; font-size: 16px; direction: ltr"><br></div></div><br></div></body></html>