r/SteamDeck • Content Creator • Sep 05 '23 • Take My Energy 1 Bless Up 1 Heart of Silver 2 Mindblown 1 Heartwarming 1

Discussion Steam Deck Tutorial - UPDATED - reset forgotten sudo password in SteamOS the quick and easy way using root debug shell method

https://youtu.be/B1qfIdP2Ayo


This is an update to my previous method on how to reset a forgotten sudo password. This method utilizes root debug shell instead of init=/bin/bash method.

You just need a USB keyboard, activate root debug shell and be done in about 2mins

https://youtu.be/B1qfIdP2Ayo


If you have forgotten the sudo password for the Steam Deck then don't worry I will teach you how to reset the forgotten sudo password the quick and easy way!

This are the steps on how to reset a forgotten sudo password. You will need a keyboard attached to the Steam Deck to enter the commands easily -

  1. While the Steam Deck is powered off, hold the 3dots (QAM) and turn on the Steam Deck.
  2. The recovery menu will appear. On your keyboard highlight the 3rd option - CURRENT (OS Boot Menu) then press enter.
  3. The GRUB menu will appear. Highlight the 1st option - SteamOS then on your keyboard press "e" to edit the boot options.
  4. Press down cursor on the keyboard until steamenv_boot is highlighted. Press "end" to go to the end of the line.
  5. Enter the command - systemd.debug_shell
  6. Press CTRL-X to boot!
  7. Once SteamOS loads, press CTL-ALT-F9 on the keyboard to access the root debug shell.
  8. Enter the command - passwd deck
  9. Enter new password and retype the new password.
  10. Once done, press CTL-ALT-F1 on the keyboard to go back to game mode.

sudo password has been reset! You can now boot to desktop mode and use sudo commands using the new password!

https://youtu.be/B1qfIdP2Ayo

1.1k Upvotes

397 comments sorted by

View all comments

Show parent comment

2

u/ryanrudolf Content Creator Jul 17 '26

Where are you putting that parameter?

1

u/MousseSilent2168 Jul 17 '26

Like this. Is this what I’m doing wrong?

2

u/ryanrudolf Content Creator Jul 17 '26

Yes you're doing it wrong. You're putting it at the end of the initrd line, while my guide mentions put it in the end of steamenv_boot

Read my guide again or watch the video guide

1

u/MousseSilent2168 Jul 17 '26 edited Jul 17 '26

Thanks, I obviously am not thinking and looping doing it wrong, will update if I work it out then. Ooooooooh. Right I get you.. I was treating initrd as part of it.. initial keyboard didn’t have end of function keys.. thank you for your help and patience

1

u/MousseSilent2168 Jul 17 '26

The best I can do is get it to boot into gaming mode but as others have said it’s a black screen after ctrl alt f9 which I can’t type in

1

u/ZarNova Aug 17 '26

Yea having that same problem too. It’s pretty hard to refer back to his original video when they’re outdated. When I put debug where it will boot and go to the command screen all I get is a black screen with no text and I’m unable to type. His info is outdated and when asked for clarification his response is reread what he said originally. At this point I’m ready to just wipe the deck because there’s no updated explanation out there.

1

u/MousseSilent2168 Aug 25 '26

Read below, the rudolf dude was completely right. I was adding it to the wrong line, it worked just fine when I found the right place. Its not at the end end.. if its the same problem as me you just have to check carefully

1

u/ryanrudolf Content Creator Aug 26 '26

Its not outdated. Read the steps carefully again or watch the video guide.