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!
82
u/dampcardboard Sep 05 '23
Wish I knew this a few months ago, basically had to factory reset my deck because I forgot my password when setting up cryotools lol
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
19
u/Veilkam Sep 05 '23
Not in need of that right now, but I'm saving this post. Nice guide!
8
u/tor09 Sep 05 '23
Saved this for the next time I fuck up
5
u/hankrazorbeard Sep 05 '23
I just wiped yesterday and lost my Pokemon save file, thought it was on the SD card lol
4
u/Yoraxx Nov 27 '23
When i Press Ctrl+alt+F9, my steam deck freezes..
3
u/Certain_Eye8086 64GB - Q3 May 28 '24
Just used this today! Worked like a charm.
3
u/LikeLikeFlan Jul 03 '24
This worked perfectly, thank you.
3
u/Andyjones99 Apr 25 '25
Over a year later and you're still saving lives
3
u/Canilickyourfeet Jun 23 '26
Hilarious I have to buy a USB C keyboard or an adapter to reset and fucking password lmao.
2
u/Codingale Sep 05 '23
Neat, the video made me think I had an installer open.
2
u/NflJam71 Nov 21 '25
Does everyone just own a USB-C keyboard? Seems like a really specific thing to have. Wish it were a little easier to get this done.
2
u/Key_Collar6101 Apr 21 '26
Why do i get this neverending counting screen when i do ctrl+alt +F9? 😪
2
u/SkyrimSlag 512GB OLED May 19 '26 edited May 19 '26
I’ve changed my password using this method, but Decky installer and konsole both still say the password is wrong?
Edit: I went through the steps and did everything again and it worked the second time. If anyone else is having the same issue, try doing it again and see if it works the second time :)
2
u/antiallium Sep 14 '26
Just want to say that this is still working in Sept 2026. Thank you so much for your help!
And a silly question from me: can I get rid of the `systemd.debug_shell` command now that I've successfully reset my password?
25
u/Umkkxk 512GB - Q3 May 06 '24
The steamdeck only has USB C slots. When I try using my steam dock the keyboard works up until the GRUB menu then the keyboard no longer functions. How do I work around this?
18
u/[deleted] Jul 27 '24
I can't type after the Ctrl alt f9 part
13
u/Impressive_Fig_3455 Mar 01 '24
any reasons why my keyboard with usb works in steam and desktop but not in the reebot menu?
9
u/NaughtyBear1337 64GB May 29 '24
Hi!
First of all, thank you for this Tutorial!
It helped but i ran into another issue now,
my Steam Deck now takes a LOT longer to start up aswell as entering Desktop Mode.
Shutting it down results in landing in the Debug Window.
I was not able to remove the Debug Shell Line as Booting into the required Section just throws me straight to the same Window.
So i am asking, is there a Fix or am i Screwed?
Thanks in Advance!
8
u/TomH_squared Nov 07 '23
I'd buy you a beer if I could, thanks for the tutorial! One thing worth noting, if your Deck has a pin code, you'll need to enter it before pressing Ctrl+Alt+F9 to get the debug shell (step 7). If you try to enter the debug shell before entering your pin, the Deck just appears to freeze at the pin entry screen. Pressing Ctrl+Alt+F1 will take you back and allow you to enter your pin if you also make that mistake
8
u/HU1_Manatee Feb 23 '25
Important note for anyone not able to type in the root debug shell after hitting CTRL-ALT-F9: Make sure to add a space after the "systemd.debug_shell" before you hit CTRL-X to boot.
So type "systemd.debug_shell " in his step 5.
3
u/Traditional_Ocelot76 May 10 '24
Anyone know why the keyboard won't type on the ctrl alt f9 part.. Had no issues getting to it with all the methods but no input is showing at this stage for some reason
5
u/Disastrous-Scale1917 Mar 23 '24
Ctrl+alt+F9 doesnt do anything for me, does anyone know why?
4
u/dashKay Oct 24 '24
I can’t type inside the root debug shell
4
u/kurdo_kolene Jul 14 '25 edited Jul 22 '26
Bumping and leaving this comment for SteamOS users on other devices:
This method works on all devices that run SteamOS (Legion Go, Legion Go S, ROG Ally (X):
Prepare a usb stick with SteamOS recovery image https://help.steampowered.com/en/faqs/view/1B71-EDF2-EB6D-2BB3
Boot the usb.(For Legion Go S hold Volume+ and press power button-> boot menu)
After you are booted into SteamOS recovery, follow these steps:
4.Enter the command - passwd deck
5.Enter new password and retype the new password.
6. Reboot
That's it.
1
u/Itshendiggitydog 21d ago
It’s supposed to be connected to my keyboard and it’s not
1
u/Pinky_- Aug 05 '24
What happens if you switch back from debug shell? I assume you're not supposed to stay on that
1
u/Altruistic-Front4929 Aug 13 '24
Can anyone help? After typing in the command the deck loads up in game mode and ctrl alt f9 doesn’t bring anything up
1
u/addstunt Sep 12 '24
After resetting the password, my Steam deck stopped displaying the start movies when turning it on. Is there a way to fix this? I think it's related to the boot menu during the steps that I followed.
1
u/level2janitor Oct 03 '24
i'm having an issue i don't see anywhere else in this thread - when i reach step 5, the steam deck simply doesn't recognize the
systemd.debug_shellcommand. i don't know what to do from here.1
u/OtherwiseStorm9841 Nov 10 '24
Neither method seems to work for me (Steam OS 3.6). In the
/bin/bashmethod, once I start it, the USB keyboard stops functioning, so I can't typemount. In the previous method, nothing happens withCTRL-ALT-F9(even after tryingCTRL-ALT-F6first, as some users suggested).1
u/CrystlBluePersuasion Dec 28 '24
I followed these steps and got the password reset to work, however I used my numpad which was disabled/turned off during the password reset, now the password doesn't work so I've reset nothing.
Now I can't even get back to the debug shell to do another password reset? Ctrl Alt F9 gives me a blank screen with blinking cursor space and nothing works, can only exit back to steam OS.
1
u/RiftKing321 Dec 30 '24
When I press CTRL ALT F9 I just get a bunch of "losing delta precision while programming shaper lut" and can't type anything.
1
u/NumberEye Feb 03 '25
You are a saint and a scholar! This tutorial has saved so many people and so many hours over reinstalling SteamOS!
1
u/MoonScentedHunter Feb 04 '25
Is there a way to now remove the debug text when it shuts down, it doesnt bother me greatly but I also like NOT seeing it
1
u/[deleted] Feb 13 '25
All is good until i get to the ctrl alt f9 menu, change password its accepted, then i cant exit!! ctl alt f1 does nilch
1
u/FourDimensionalNut Feb 14 '25
just gonna add my fix here since this thread is a top result in google. I tried so many fixes between so many threads (thread 1 thread 2 thread 3) and none of them worked. between the konsole commands, partition manager, inserting, removing, windows powershell, etc. i thought nothing would fix the card
until i decided to try a hail mary and inserted the sd card into my samsung galaxy a35 and it offered to format it
and it worked. the card now opens in windows and is usable again. not sure what will happen on the deck again (bit scared to try tbh) but i saved the card.
so if you have an android that still has a sd card slot (rarity in 2025 sadly), try it. its so stupid, it might just work.
1
u/bakanard Feb 16 '25
Je ne dispose pas d’un clavier USB C et je bloque à la dernière étape à savoir entrer un mot de passe car je ne peux pas écrire. Des solutions ?
1
u/SecondHandSexToys 1TB OLED Limited Edition Apr 30 '25
At step 7 here after hitting Ctrl+Alt+F9 my steam deck just went to a black screen with a text cursor in the upper left corner and sat there for ~5 minutes before i decided to restart. Now it just hard freezes every time I try to hit Ctrl+Alt+F9.
I tried Ctrl+Alt+F9 from desktop mode and the screen just goes black, but I can tell the steam deck is still on because I still get haptics from the trackpads.
1
u/Octostrike3374 May 15 '25
Everything was working fine up until having to press Ctrl-Alt-F9. When I did, not only could I not type, the Deck kept repeating what I believe is an error that was along the lines of “Losing delta precision while programming shaper LUT”
Has anyone else had this problem and is there a fix?
1
u/Far-Berry-3183 May 26 '25
I don't understand why, I followed your guide to the letter and when I get to the last string to insert, a message appears "bash comand dont exist" and from there it doesn't go forward and I have to restart how can I solve it?
1
u/SameStore1060 Jun 19 '25
Not sure if this worked for everyone, I have tried to follow the guide but because I am overseas and do not want to buy a keyboard just for that
So what I did is step 1-2 (not sure if it affects the following)
Then my sudo password magically became the one I just set
1
u/YellowCoatDog Aug 21 '25
Just wanted to flag that this was super useful and worked a treat!
1
u/Kiahnte Oct 12 '25
Hey, does anyone know how to do this on ROG Ally? I recently installed SteamOS on it, and I guess I must've decided it was a good time to come up with a brand new password (it wasn't). I can't figure out how to get into Steam OS's recovery mode on ROG Ally though.
1
u/Baker_Acrobatic 1TB OLED Oct 15 '25
Holy crap, this helped so damn much. I was having a slight panic attack because I'm not nearly as experienced with stuff like this. I'm so glad I did it second try (messed up at step 5 😭).
1
u/kevinutrera Oct 17 '25
Trying to do this and Ctrl+Alt+f9 does nothing :( I checked everything else and did it correctly. Did anyone had the same issue? TIA
1
u/anthonyy95 Oct 29 '25
Anyone know why this screen happens on ctrl alt f9
1
u/NieveCactus Nov 12 '25
For some reason I get all the way to the alt - f9 step, konsole comes up and I type in passwd and then my keyboard wont let me type anything for the new password? Any suggestions would be great
1
u/USSRPropaganda Dec 23 '25
So if you don’t have a keyboard you’re SOL
1
u/maximef1 Jan 10 '26
Thanks! This still work in January 2026
1
u/James-1410 1TB OLED Limited Edition Jan 13 '26
2 years on and still useful, cheers you legend.
1
u/Helznicht-2308 Jan 17 '26
Recovery USB gave me no options, just started wiping my LEgion Go and reseting steam os, lost everything. Use caution.
1
u/gialloVero Feb 19 '26
I tried to follow the steps but Ctrl Alt F9 seems to freeze it. Anyone has a suggestion please?
1
u/HurryDangerous6280 May 07 '26
Once I press CTRL+ALT+F9, the menu just keeps saying "drm losing delta precision"
What should I do?
1
u/Sean-Maady May 14 '26
Is there a way to do all this without a keyboard??
1
u/cthulhuisgodtattoo May 15 '26
Hey!!! I know this is old post but any clue how to have my Bluetooth keyboard register during this boot up screen? It won’t work because it won’t connect until steam deck is actually on… do you know of any other options
1
u/coinzz_1337 Jun 30 '26
This sounds like a security issue, that should be fixed 🙈
1
u/MousseSilent2168 Jul 17 '26
when I do this every time it says that the ‘ systemd.debug_shell’ is invalid. When I ctrl x it says it can’t boot. End kernel panic. noone else seems to have this issue and it’s so frustrating. I’m struggling to understand what I’m missing
1
u/AdElectronic4912 Jul 21 '26
Any way to bypass needing an external keyboard?
1
u/Jaded-Ad-3003 Jul 30 '26
Hey I actually try to apply your tutorial but there is something look weird like fore the command type and I'm really scared to make a mistake so please really please help me
1
u/ZarNova Aug 15 '26
This bricked my steam deck
1
u/cirqix Sep 12 '26
idk if anyone is gonna see this but when I get into SteamOS and type in Ctrl f9 to enter passwd deck its just a blank screen, so is it passwd deck -> enter -> new password, enter then new password again?
1
u/abbywabby04 512GB OLED Oct 05 '26
omg dude you just saved me, thank you for posting this way back when! i’ve spent the last 30 minutes trying and failing different methods to reset the sudo password (with some of them producing scary results), but now everything’s working! if you see this, i hope you have a wonderful day/night - you deserve it 🥰
1
u/Scrufboy Sep 05 '23
Thanks for the tip... And the new word knowledge! Appreciate it!
3
u/WarlanceLP 512GB Oct 26 '24
I tried this and everything seemed to work fine however my sudo password doesn't actually seem to have changed despite it saying it did in the debug terminal
3
u/Papa_Huggies Mar 15 '25
This needs to be stickeyed
1
u/Panther107 Feb 08 '24
after opening root debug shell, the shell doesnt allow entering any text. When i type passwd deck, nothing appears, and pressing enter doesnt elicit any change either, i know passwords arent shown in shell but commands are. When exiting debug shell my keyboard works for text fields in the steamos UI though.
2
u/PhoolCat 512GB Oct 21 '23
I can't get step 1 to work, it just boots to Windows.
I'm trying to recover my sudo pw so I can restore the Steam OS entry in the boot menu after the recent update
2
u/RegularJohn53 Jun 29 '24
My keyboard does not work after ctrl alt f9. Tried switching from xhci to rdr and vice versa but it just doesn’t work. If I press ctrl alt f1 that works and goes back to steamos. The deck isn’t freezing tho just the keyboard won’t type anything. Any solution?
2
u/Einstein_Disguise Aug 27 '24 edited Aug 27 '24
How do you actually change the BIOS from DRD? I am seeing mine on F7G0107 with no options to change to a different version. Are DRD and XHCI something I need to download?
I am able to do every step of your guide until I get to the CTRL+ALT+F9 step on reboot. I am just seeing the screen to enter my pin and pressing those keys together does not seem to launch the debug menu.
Should I be pressing those keys once on the "Home" screen? I watched your video and you don't use a pin, but I see others having the same issue as me.
I am going to be attempting this again soon with the pinned comment on your video related to trying CTRL+ALT+F6 first.
Edit for posterity: my keyboard has a function key I had to hold down 💀
2
u/JBJblaze Oct 08 '24
CTRL-ALT-F9 doesn't do anything for me and yet my Steam Deck OLED already has XHCI enabled.
2
u/davethebarb Nov 11 '24
For anyone like myself who has had an external USB keyboard stop working at the GRUB menu (Step 4), I've found that if I use the Steamdeck buttons at -any- point, excluding using the three dots button to get into the recovery menu, then it won't let me use the USB keyboard. I assume the Steamdeck buttons count as a keyboard, and there's some sort of priority override or clash happening.
One thing I had to do is on the recovery menu (Step 2), I had to unplug and replug in my USB keyboard to get it to work to select the third option, at this point it all worked fine for me.
Hopefully this may work for anyone else having the same problem.
2
u/Equivalent_Humor2996 May 31 '25
For number 4 where do I find "end"?
2
u/coldswim_ Jun 02 '25
Hey can you help me rq? I think maybe it updated, but the GRUB menu looks quite a bit different, and when I input the systemd.debug_shell in at the end, it says "file cannot be found" or along those lines. I have OLED if that matters -- but I'm just not sure what to do =( thanks!
2
u/Desperate-Ask-3436 Jun 28 '25
Hey even after all these steps, even when it said the password was resetted successfully, it still says “incorrect password” or some sort of message like that when it asks for a Sudo password. I’ve restarted my deck multiple times too. Anyone know why?
2
u/DrWaffle03 512GB OLED Jun 30 '25
Yeah.... I try to plug my keyboard in and it doesn't register. Tried with the dock and a usb A to C adapter and the keyboard just has basic inputs that do the same thing as buttons on the deck (a/start/space on keyboard to enter) (tab, z, o, 9 and p are all end key) (window button on deck is tab)
I have no idea if it's my keyboard or what but I've never had an issue with it with anything else
2
u/Individual_Cod2004 Aug 07 '25
When i click ctrl+Alt+fn+9 it doesn’t do anything in the gaming mode home screen, pls help?
2
u/scuba365 Feb 10 '26
Still working, thank you!
2
u/roberrob003 Mar 24 '26
You sir, are a scholar and a gentleman. Saved me some (more) grey hairs. Worked like a charm, quick and easy, march 2026.
2
u/sdrcn Apr 22 '26
How do you get the keyboard to work at step 3? Once in the grub menu, kb doesnt do anything. Have tried 3 keyboards connected to a usb to usb adaptor and into the deck.
What kb and connections are ppl using where it works? Is there a way to do this without the kb in the grub menu?
2
u/SamuraiSuicide Jul 12 '26 edited Jul 12 '26
This does not appear to work anymore. On steamOS 3.8.14 i get endlessly scrolling amd gpu messges.
UPDATE: my keyboard was plugged into my dock. All I had to do was disconnect the hdmi and it worked
1
u/TigerCow7 27d ago
Would that work on the steam frame too?
1
u/estasmuymal Mar 17 '24
Thank you!
1
u/squad_dad May 08 '24
Just wanted to chime in and say that following these steps worked perfectly for me. Saved me a reinstall of the OS. Thanks!
1
u/Thurigas May 13 '24
Thank You!
1
u/PizzaCatLover May 30 '24
Just commenting to say thank you, friend forgot his pw and this saved us having to reset it. Great work!
1
u/13lobos Jun 29 '24
Thank you so much for this tutorial. For step 7 I actually needed to go into the BIOS and switch back to DRD because I was already on XHCI mode.
1
u/StreetLegendTits_ 1TB OLED Aug 06 '24
You saved my bacon, thank you!
1
u/Dragomier Aug 15 '24
I am so confused what is the free dots I held QAM and that didn't do anything as my deck booted
1
u/ItsDiego19 Aug 19 '24
Is there any way I could do this with a wireless keyboard I download off my phone?
1
u/Proud_Transition7914 Sep 17 '24
Wow thanks
1
u/Williamago Sep 18 '24
Nice guide!
Good job!!!
1
u/abeccue Sep 28 '24
BLESS YOU this just saved my ass
1
u/Linguine_chan Oct 18 '24
Tysm !
1
u/Crimson_Gunpla Oct 18 '24
My screen just seems to either freeze or turn black when I use the CTRL-Alt-F9 combination, is there a more up-to-date guide or something I am doing wrong? I made sure to follow all of the recovery steps to the letter, hovered over steam_env, went to the end of the line, typed systemd.debug_shell
1
u/sanmiguel-wv2Okr 512GB Nov 15 '24
It took me a few attempts to do this - I could get as far as hitting Ctrl-Alt-F9 for the root shell but it never loaded. Turns out the culprit was having my external screen plugged in via the usb hub. Removing it temporarily then let me reset the passwd via root shell as expected.
Thanks OP!
1
u/lobsterxcore 512GB OLED Nov 30 '24
fucking legend, thank you
1
u/DualityDrn Dec 01 '24
Thanks, still working. Small note if you get a black screen with just a "-" showing it might be because on step 5 you typoed. I included the "-" before "systemd.debug_shell" not knowing any better and it didn't work. Removed the "-" after watching the video closely and it worked fine.
1
u/realelpixion 1TB Dec 11 '24
Doesn't work, I add the text but in steam OS control alt f9 don't do anything and opening konsole still wants my old password, Linux is an os for the unemployed
1
u/KannaCrossing 512GB Dec 19 '24
Thank you so much!!
1
u/RamdomPerson09 Jan 30 '25
I know this is a old post but thank you, This stopped me from factory resetting.
1
u/TheGreatBillyBob Jan 30 '25
Keyboard doesn't work? Only some keys?
1
u/HugeAir6225 Jan 30 '25
Thank you so much! It worked!
1
u/DuhVirus Apr 03 '25
Tysm, decky is having issues and when i went to reinstall i realized i pulled an whoopsi and forgot my sudo pass.
1
u/citrusmelon1243 Apr 18 '25
One year later, this still works. Saved me a LOT of headache
1
u/Tap__Tap__ May 16 '25
thank you o7
1
u/KenneR330 May 27 '25
I don't have Type-C keyboard or hub. Any tips?