I managed to get myself into quite the corner.
I messed up permissions to /usr/bin/
and all subdirectories, e.g. root is no longer owner of /usr/bin/sudo
. As a result, I get the infamous /usr/bin/sudo must be owned by uid 0 and have the setuid bit set error, which I found the above link to solve.
However, when I try to boot to either Recovery or an installation USB to re-install Ubuntu, I only get a black screen when trying to enter grub. From posts like this and this, I've gathered that grub is hidden in recent releases of Ubuntu. The issue now is that I cannot edit /etc/default/grub
since I don't have sudo access...and we've come full circle.
EDIT:
I now believe that my blank screen when I press ESC at boot is because of nouveau kernel drivers
, per this link. But I cannot disable those at grub during boot without sudo access.
I've read through a similar sounding issue here:
https://askubuntu.com/questions/1246482/i-got-a-black-screen-every-time-ubuntu-boots-and-i-cant-get-to-the-grub-menu
But all of the solutions require sudo access... which brings me back to square 0
– ndeboldt Nov 02 '23 at 20:18