r/SteamDeck
•
u/ryanrudolf
Content Creator
•
Sep 05 '23
•
1
1
2
1
1
Discussion Steam Deck Tutorial - UPDATED - reset forgotten sudo password in SteamOS the quick and easy way using root debug shell method
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
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 -
- While the Steam Deck is powered off, hold the 3dots (QAM) and turn on the Steam Deck.
- The recovery menu will appear. On your keyboard highlight the 3rd option - CURRENT (OS Boot Menu) then press enter.
- The GRUB menu will appear. Highlight the 1st option - SteamOS then on your keyboard press "e" to edit the boot options.
- Press down cursor on the keyboard until steamenv_boot is highlighted. Press "end" to go to the end of the line.
- Enter the command - systemd.debug_shell
- Press CTRL-X to boot!
- Once SteamOS loads, press CTL-ALT-F9 on the keyboard to access the root debug shell.
- Enter the command - passwd deck
- Enter new password and retype the new password.
- 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!
View all comments
34
u/Jam-Stew Aug 05 '24
In case anyone else has the problem I had where pushing Ctrl alt F9 leads to a blank screen with cursor, between steps 4 and 5 make sure you push the space bar once before typing systemd.debug_shell I think he mentions this in the YouTube video description. I kept making this error but once I left a space it worked and I was able to finally change the password. Thanks OP!
Edit: I read the tip regarding the space on this video:
https://youtu.be/F96ntnf8qiQ?si=Rr6UhS_uV_mmBSgx