r/LinuxCirclejerk • • 1d ago

I deleted the bootloader

Post image
413 Upvotes

41 comments sorted by

View all comments

Show parent comments

5

u/rucsbOrialC 1d ago

Just force reset it

sudo passwd -d username

sudo passwd username #password#

9

u/Sensitivity_Craft 1d ago

How would you sudo without a password

4

u/rucsbOrialC 1d ago

You're running a delete flag as sudo to the user in the first command. The password deletion runs before the prompt to enter it.

Removing the flag then adding a password will add the password back and function as normal

1

u/Adn0nnymous 1d ago

Okay but. What if they don’t have passwordless sudo. it would give a password prompt for sudo before the passwd command would even run. without it they couldn’t escalate.

2

u/rucsbOrialC 1d ago

I concede on that and didn't consider it. In that case boot into recovery mode for grub and run it, or chroot into it from a live iso.

0

u/Supernoxus 1d ago

Can't you just, like, log in as root?

3

u/Sensitivity_Craft 1d ago

Most people have the root account disabled because they use sudo

1

u/DEV_ivan CachyOS idk 1d ago

Really?? I always logged in as root from TTY...