Reset Ubuntu user password | Ubuntu 20.04 | WSL2 | Windows 11
Вставка
- Опубліковано 8 вер 2024
- This video is going to be about how to reset the forgotten user’s password on the Ubuntu Linux which is installed as a Windows Subsystem for Linux in Windows 11. So, let’s get started.
Before learning how to reset the password, we are going to understand the problem scenario. Let’s open the Ubuntu which I installed on the Windows 11 as a Windows subsystem for Linux. Let’s do something that requires the user’s password, for example sudo apt update. This command is used to update all the packages that are already installed on the Ubuntu Linux from it’s remote repository and requires an administrative privilege or the super user privilege. The user Enkripsan in the system is a super user, so it can run any administrative password but you will need to enter the password of the user. Don’t confuse, it’s not asking you to enter the root password but the user’s password which is currently logged in.
We assume that, we have forgotten the password, we try entering the correct password for three times but we fail each time. Now, let’s learn how to reset the forgotten password.
Open command prompt, type ubuntu2004 which means the version of the ubuntu that is 20.04, config - -default-user root. This will open the Ubuntu app with the default user logged in as root on its next launch. Now close the command prompt, open the Ubuntu Linux and here we can see by default it's logged in as the root user. Clearing the screen if we type LS space slash home we can see the user Enkripsan, we are going to reset the login password of this user. Type the command PASSWD space the username which in my case is Enkripsan, type the password, again the password is not visible while you are typing, retype the password to confirm. The password of the user encryption is now reset, and we can see the message from PSWD that the password updated successfully. Close this window of the virtual terminal of the Ubuntu app, again open the command prompt and type ubuntu2004 space config space dash, dash default dash user space the username which in my case is Enkripsan and hit enter.
Now when you launch the Ubuntu Linux app next time, it will open up with the user Enkripsan logged in by default. Let's close this command prompt and check. As we can see, we are logged in as the user enkripsan.
Now we know the password so we can run any task that requires end administrative privilege or the superuser privilege. Let's see by running the command sudo app update, it's asking for the password of the user Enrkipsan, so type the password and hit enter, we can see the command execution continues.
OK guys, this is how we can reset a user's password in Ubuntu 20.04 which is installed on the windows 11 as a windows subsystem for Linux, that's all for this video I hope the video was useful to you, please subscribe our channel and hit the bell icon thanks for watching see you on other videos till then have a nice time goodbye.
for those the ubuntu2004 command fails try this --> ubuntu config --default-user root
Thanks for your suggestion.
Thanks! It helped me.
i love you bro
ubuntu command not found
Thank you
some of the videos were too complicated where they were asking to install unnecessary applications to reset the password. but i reset my password while playing your video within 5 mins
Happy to hear ! Thank you 🙂
First video on searching the topic and I could change my Ubuntu password just in 5 minutes. Very good bro!! Thanks
Glad it worked. Most welcome.
Please make video for 22.04.1 Ubuntu how to fix this problem
Just put 2204 instead of 2004, it works for me
Remove the version code and just type ububtu instead of ubuntu2004
'ubuntu2004' is not recognized as an internal or external command,
operable program or batch file
how do I fix this?
this also shows up on mine, did you find a fix?
I think because of the version of Ubuntu is different
Same problem am facing 😢
just use: ubuntu config --default-user root
@@Luis-Fernando19thanksss bro
This seriously saved me so much time, dude thank you so much!
Most welcome
@@Enkripsanubuntu 2204 version how
@@Ghostrider-gz1tfsame problem
just type "ubuntu..." command like him but without version
like "ubuntu --default-user "
@@Ghostrider-gz1tf
@@parallel3886 Here is the vidoe- ua-cam.com/video/1fpc9TL5bBo/v-deo.htmlsi=_EcfmEXs4vDgwAiS
for anyone who got this error :"ubuntu2004" is not internal or external
command, executable program, or batch file."
I fixed this issue by typing: "ubuntu.exe config --default-user root".
Changing ubuntu2004 -> ubuntu.exe.
This works for me.
guys this is legit it 100% worked thanks @naubinhkggffs6159
God bless you. Your solution was perfect
Thank you so much, my second ChatGPT😂😂
ubuntu command not found
this was perfect for the problem I was having, thank you so much.
I couldn't boot ubuntu in recovery mode like everything else was saying
Most welcome
Thanks man. Saved me the trouble of wiping off the data and reinstalling ubuntu. Thanks a big time.
Same feeling..
Glad it helped
I'm very happy that I got this video. I searched a lot for changing password but every video I got was somewhat incomplete or irrelevant.
Thank you bro you solved my problem in just 5 minutes 👍
Glad it helped.
life saver it took me three weeks to figure out how to change passwordd
Glad I could help
but i had dowloaded 22.04.1. can you tell me what is the command for this version?
I have the same problem. Have you resolved it?
@@athirah1619 dude I have the same problem. Did u manage to resolve it?
I have same problem can you help me
I stuck with same problem. Any idea guys
Instead of 2004 u can type 2204 and everything is the same ...sure It will work...
In my case, it helped ---
ubuntu config --default-user
Great ! Thanks for sharing.
Your video make my day ... i was struggling how to do it but you make it very well and concise.
True life saver! Simple procedure everyone can follow, lots of thanks!
Most welcome
Most welcome...Thanks
Bro you are the best. Everything worked smoothly. Thanks a lot
You're most welcome!!
thank you so much i was looking for hours perfect video works also for debian btw thank you so mcuh for this video
You saved my time dude.
Thank You.
Regards Dear Sadiq.
Glad it helped.
My man, you've just gained a subscriber! Thank you so much!
how does it work rn? i cant get into the root
@@wubdup It works fine. Please follow the video.
@@wubdup i wrote "ubuntu" instead of "ubuntu2004" and it worked
Thanks bro u saved me and my future generation coz i was about to go crazy😂
Most welcome !
Bro you are perfect to figure it out. it totally works. thanks
"ls /home" saved my life !!
Thanks a lot
thanks you so much... perfectly working
Most welcome
Thank you so much for this video. It works, other video as taking so many unnecessary steps. I appreciate you
You're a lifesaver, I just subscribed to your channel
Thanks
Sir getting an error is not recognised as an internal or external command
The command was wrong so it is telling error
Works perfectly !! thanks man you litterally saved me here xD 🔥
Most welcome. Many thanks for your comment.
Thanks bro, helps a lot! ( Ap kahan the gyani baba 😂)
Glad it helped
watching ur video for the second time bro
Thank you very much
This worked perfectly thank you so much!!
Most welcuome !
video is very usefull to me...
Thank you
Most welcome. Glad to know it helped.
MAN I LOV U. GOD BLESS THE INDIA PEOPLE 😢❤
good man , you save my life. i gonna give you some support maaaaaaaaaa homie
Most welcome
Legit great! this video worked for me thank you so much.
Most welcome
Excellent work.... Power is Linux is inevitable.....Thanks buddy!
Most welcome
thanks for helping!!! im so grateful to find this video
When I type the ubuntu2004 config -default-user root it says ‘ubuntu2004’ is not recognized as an internet or external command please help
Same here, but I'm in Ubuntu 2204 so I typed ubuntu2204
try ubuntu config --default-user root
@@josuesinaca4197 MVP
@@josuesinaca4197 wewe ni genious
@@josuesinaca4197 genious
Bro ! My ubuntu version is 22.04.1. and i tried to write it like ubuntu 2204 and ubuntu22041 also but it shows error saying " 'ubuntu22041' is not recognised as an internal or external command,operable program or batch file .
Pls help me out
just type : ubuntu config --default-user
Thanks for sharing.
Thanks bro!, you save my live
Most welcome. Glad I could help you.
Thank you so much, it really help me out to change my ubuntu user password.
You're most welcome!!
Thanks a lot. This was exactly what I was looking for.
thank you! this tutorial is a lifesaver
Most welcome
You are the best dude.. Thanks a lot..... 🎉🎉🎉🎉🎉🎉
Most welcome
Thank you so much, it worked! I was really struggling
You're welcome! Glad it worked.
Thank u verymuch for successful easy instruction
Most welcome
if you dont know your ubuntu version, just put this command: ubuntu config --default-user root
Thanks for you comment
thank you sir, u saved me lot of time 😃
Most welcome
Very Helpful video thanks 👍
Most welcome !
You just saved my thesis, Thank you so much
it's working thank you so much you are life saver
thank u so much bro,.... you've save my time
Most welcome
THANKYOU SIR, ITS VERY HELPFULL FOR US
You're most welcome!!
Thank you so much. This video saved me a lot time
Most welcome!
TRY ONLY "ubuntu config --default-user root"
If u put the numbers of the version it may not run
Thanks for sharing.
it's not working fro me
it's showing like
" C:\Users\vijay>ubuntu2004 config --default-user root
'ubuntu2004' is not recognized as an internal or external command,
operable program or batch file. "
Dont use ubuntu2004, instead use ubuntu.exe
This video just saved my ass. Thanks
Most welcome
thank you so much after researching so much i got u
Most welcome
Thank you so much. You helped me at the right time.
Glad I could help!
Thank you soo much sir
Most welcome
my cmd is not able to recognize command "ubuntu2204 config --default-user root". Could you please tell me what to do now. I would be very grateful to you..
hello, if you are using a newer version, you don't need to type in the version, just ubuntu is required, so type in "ubuntu config --default-user root"
Thanks for helping out !!
You're a life saver.
Thanks a lot.
in my case, ubuntu is asking for my old password. help me, brother
Please follow the video carefully, you should first set the default login to root, change the password of the user and then set the default login to your current user. It does not asks password.
Thank you really it helped me😀
how to know which version of ubuntu do i have?
Hi Ghostify, you can run the command 'cat /etc/os-releas'. Thanks for the comment.
Thank you so much.This solved my problem 😊
Most welcome! Glad to hear.
hey bro thanks so much.🙏
Most welcome
god bless your soul my friend
Most welcome
Thank you Enkripsan!
Most welcome
What I need to do for windows 10
thanks man. though it can without the version specification like ubuntu only
Most welcome.
I don't have cmd because my system was completely installed with ubuntu now how can i reset the password
You need to follow other way.
Very Very Helpful ❤
If u Ubuntu version is 18.04.6.
ubuntu1804 config --default-user (nameusrr)
Awesome, thank you!
very helpful ,thank you veru much
You are welcome!
Thank you mate ❤
I love you bro
Thankyou so much 🎉
Excellent
Thank you very much.
Thank You! Worked perfectly
You can aslo just type wsl -d Ubuntu-20.04 -u root
thanks man
Thank, This is usefull
Thanks a lot
This was helpful thank you
Glad it was helpful!
Thanks a lot for this video.
Most welcome
Thanks alot really appreciate
most welcome
thank you very much sir!
Most welcome!
ive done it thank youu sooo much uuuuuuuuuuuuuuuuuuuaaaaaaaaaaaaoooooooooo :D
Glad you could do it.
thanks, was easy , you are a master
most welcome
its says unbuntu2004 isn't recognized as a internal or external command please help 😥😥😥😥😥😥😥😥😥😥
Check your so called version of Ubuntu
Thank you SIR
Thank you man! 💌
thank you , i was searching for 1 h, thanks
This video is a life saver.😅
Thanks a lot
Thank you!!!
Most welcome.
thank you so much
Most welcome.
Thanks man!
Most welcome.
Bro it is showing like root@Om.. but I don't know why it didn't ask for password
What should I do to fix this
Thanks bro ❤
Most welcome
Simple but reliable 👍
Love you bro