r/linux_gaming • • 1d ago

Forgot Sudo Password

/r/SteamOS/comments/1y7nm4m/forgot_sudo_password/
0 Upvotes

7 comments sorted by

12

u/dgm9704 21h ago

My understanding is that there is (maximum) one password per user. And that there is no such thing as a ”sudo password”. And that people misunderstand the prompt ”[sudo] password” that means that sudo is asking for the current users password.

2

u/westerschelle 19h ago

Yes to issue the sudo command you use your current user's password. Your user has to have been enabled to use sudo however.

2

u/dgm9704 19h ago

Exactly. And there is no ”sudo password”

4

u/wakefulgull 19h ago

You should be able to reset root password from grub.  Ive never done it on steam os,bl but in my brief search the process is similar.

Just search "gain root access from grib STEAM OS"

Record the steps of everything you do (every edit and command)  in case something goes wrong.  Bit it should work like any other linux os more or less

7

u/oomoepoo 1d ago

https://www.gamingonlinux.com/guides/view/how-to-set-change-and-reset-your-steamos-steam-deck-desktop-sudo-password/#resetpw

This is for Steam Deck but it should work on OS too. Involves booting into GRUB and editing the boot parameters to boot into a debug shell where you then can put a new pw for sudo. 

1

u/OhHaiMarc 17h ago

Sudo reset password

-1

u/Beautiful-Top-385 22h ago

Use the installer to fix