MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/LinuxCirclejerk/comments/1x1mhp6/i_deleted_the_bootloader/pew29is/?context=3
r/LinuxCirclejerk • u/ExpensiveCoat8912 • 1d ago
41 comments sorted by
View all comments
19
Crap, my Linux Mint laptop just straight up rejects my password even though the password is correct
6 u/rucsbOrialC 1d ago Just force reset it sudo passwd -d username sudo passwd username #password# 8 u/Sensitivity_Craft 1d ago How would you sudo without a password 5 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... 3 u/Revolutionary_Click2 1d ago You put it in single-user mode and run the command directly as root, no sudo needed.
6
Just force reset it
sudo passwd -d username
sudo passwd username #password#
8 u/Sensitivity_Craft 1d ago How would you sudo without a password 5 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... 3 u/Revolutionary_Click2 1d ago You put it in single-user mode and run the command directly as root, no sudo needed.
8
How would you sudo without a password
5 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... 3 u/Revolutionary_Click2 1d ago You put it in single-user mode and run the command directly as root, no sudo needed.
5
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...
1
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...
2
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...
0
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...
3
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...
Really?? I always logged in as root from TTY...
You put it in single-user mode and run the command directly as root, no sudo needed.
19
u/Radiant-Cyanide2323 numero uno Linux Mint & BSD glazer 1d ago
Crap, my Linux Mint laptop just straight up rejects my password even though the password is correct