Reset Ubuntu user password | Ubuntu 20.04 | WSL2 | Windows 11

preview_player
Показать описание
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

abhityagi
Автор

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 👍

its_anshu
Автор

First video on searching the topic and I could change my Ubuntu password just in 5 minutes. Very good bro!! Thanks

Shivottmam
Автор

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

praveendubey
Автор

Thanks man. Saved me the trouble of wiping off the data and reinstalling ubuntu. Thanks a big time.

AbdulBasit-vxvs
Автор

Bro you are the best. Everything worked smoothly. Thanks a lot

KiffenBeats
Автор

Thank you so much for this video. It works, other video as taking so many unnecessary steps. I appreciate you

PollynzDataTech
Автор

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

OshMax
Автор

Bro you are perfect to figure it out. it totally works. thanks

alisaidbas
Автор

My man, you've just gained a subscriber! Thank you so much!

sebastianosalarin
Автор

Works perfectly !! thanks man you litterally saved me here xD 🔥

danielmortada
Автор

Thanks a lot. This was exactly what I was looking for.

ShrutiSharma-nfgs
Автор

Please make video for 22.04.1 Ubuntu how to fix this problem

Pravinunique
Автор

This seriously saved me so much time, dude thank you so much!

michaellee
Автор

This worked perfectly thank you so much!!

RiftRunnersWR
Автор

'ubuntu2004' is not recognized as an internal or external command,
operable program or batch file
how do I fix this?

mbohsct
Автор

Legit great! this video worked for me thank you so much.

poxvkit
Автор

thanks for helping!!! im so grateful to find this video

iwbkczr
Автор

Thank you so much, it worked! I was really struggling

amichoudhary
Автор

Thank you so much. You helped me at the right time.

srivanikrupakagitha