Reset Ubuntu user password | Ubuntu 20.04 | WSL2 | Windows 11
HTML-код
- Опубликовано: 25 мар 2022
- 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
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.
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.
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 🙂
Thanks man. Saved me the trouble of wiping off the data and reinstalling ubuntu. Thanks a big time.
Same feeling..
Glad it helped
Bro you are the best. Everything worked smoothly. Thanks a lot
You're most welcome!!
Thank you so much for this video. It works, other video as taking so many unnecessary steps. I appreciate you
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
Bro you are perfect to figure it out. it totally works. thanks
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
Works perfectly !! thanks man you litterally saved me here xD 🔥
Most welcome. Many thanks for your comment.
Thanks a lot. This was exactly what I was looking for.
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
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- ruclips.net/video/1fpc9TL5bBo/видео.htmlsi=_EcfmEXs4vDgwAiS
This worked perfectly thank you so much!!
Most welcuome !
'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
Legit great! this video worked for me thank you so much.
Most welcome
thanks for helping!!! im so grateful to find this video
Thank you so much, it worked! I was really struggling
You're welcome! Glad it worked.
Thank you so much. You helped me at the right time.
Glad I could help!
Thank You! Worked perfectly
You're a lifesaver, I just subscribed to your channel
Thanks
thank you! this tutorial is a lifesaver
Most welcome
Awesome, thank you!
True life saver! Simple procedure everyone can follow, lots of thanks!
Most welcome
Most welcome...Thanks
Excellent work.... Power is Linux is inevitable.....Thanks buddy!
Most welcome
thanks you so much... perfectly working
Most welcome
Thank you so much. This video saved me a lot time
Most welcome!
good man , you save my life. i gonna give you some support maaaaaaaaaa homie
Most welcome
Thanks man...it worked!
thank you , i was searching for 1 h, thanks
Thank you so much.This solved my problem 😊
Most welcome! Glad to hear.
life saver it took me three weeks to figure out how to change passwordd
Glad I could help
thanku bhai it help me ..
You just saved my thesis, Thank you so much
Thank you so much, it really help me out to change my ubuntu user password.
You're most welcome!!
Thank u verymuch for successful easy instruction
Most welcome
it's working thank you so much you are life saver
Thank you really it helped me😀
thank you so much after researching so much i got u
Most welcome
You are the best dude.. Thanks a lot..... 🎉🎉🎉🎉🎉🎉
Most welcome
hello in command prompt (terminal) its not working, ("ubuntu22.04" is not internal or external
command, executable program, or batch file.) it gives this error :(((
could you help me please ?!
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.
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
Definitely life saver!
What I need to do for windows 10
Thanks. This helped me a lot.
Most welcome
You saved my time dude.
Thank You.
Regards Dear Sadiq.
Glad it helped.
Simple but reliable 👍
You're a life saver.
Thanks a lot.
thank you sir, u saved me lot of time 😃
Most welcome
Thanks bro u saved me and my future generation coz i was about to go crazy😂
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
You’re a life saver
Thanks 😊
You're most welcome!!
This was helpful thank you
Glad it was helpful!
Worked. Thank you.
You're welcome!
THANKYOU SIR, ITS VERY HELPFULL FOR US
You're most welcome!!
Thanks man!
Most welcome.
Very Helpful video thanks 👍
Most welcome !
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...
Thanks bro!, you save my live
Most welcome. Glad I could help you.
Thank you Enkripsan!
Most welcome
01:41
when i enter ubuntu2204 config --default-user root
it says
'ubuntu2204' is not recognized as an internal or external command,
operable program or batch file.
plz watch the video full, I think you will get your answer within the video. Thanks for watching and commenting.
Dont use ubuntu2004, instead use ubuntu.exe
thanks, was easy , you are a master
most welcome
thank u so much bro,.... you've save my time
Most welcome
Thanks for the video !!!
Thank you mate
Thank you!
very helpful ,thank you veru much
You are welcome!
thank you so much brother!
Thank you soo much sir
Most welcome
hey bro thanks so much.🙏
Most welcome
thanks man
thank you very much sir!
Most welcome!
Thank you SIR
Man, you rock...
Thanks
Love you bro
Can we use this on terminal
Thankyou so much sir
Awesome Video!!
Thanks alot
Thank you!!!
Most welcome.
Thanks a lot man.
Most welcome
Thanks a lot for this video.
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 !!
Thank you so much 🙏 It worked
You're most welcome!!
Thankyou very much .
This solved my problem 😊
Thank you! Lifesaver
You're most welcome!!
Thanks alot really appreciate
most welcome
Really thank you brooohhhh....❤
Most welcome
Thank, This is usefull
Thanks a lot
awesome, thanks!!
Most welcome
This video is a life saver.😅
Thanks a lot
ive done it thank youu sooo much uuuuuuuuuuuuuuuuuuuaaaaaaaaaaaaoooooooooo :D
Glad you could do it.
I don't know my Ubuntu version please help me
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.
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
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.
Excellent
Thank you very much.
Thank you still helpfull