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.

КОМЕНТАРІ • 374

  • @abhityagi6562
    @abhityagi6562 Рік тому +46

    for those the ubuntu2004 command fails try this --> ubuntu config --default-user root

  • @praveendubey5981
    @praveendubey5981 2 роки тому +4

    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

    • @Enkripsan
      @Enkripsan  2 роки тому +2

      Happy to hear ! Thank you 🙂

  • @Shivottmam
    @Shivottmam 5 місяців тому +3

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

    • @Enkripsan
      @Enkripsan  5 місяців тому +1

      Glad it worked. Most welcome.

  • @Pravin33unique95
    @Pravin33unique95 Рік тому +16

    Please make video for 22.04.1 Ubuntu how to fix this problem

    • @vinothvelu8927
      @vinothvelu8927 Рік тому +3

      Just put 2204 instead of 2004, it works for me

    • @imRJD14
      @imRJD14 9 місяців тому

      Remove the version code and just type ububtu instead of ubuntu2004

  • @user-mb4oh3sc7t
    @user-mb4oh3sc7t Рік тому +8

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

  • @michaellee6713
    @michaellee6713 Рік тому +15

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

    • @Enkripsan
      @Enkripsan  Рік тому

      Most welcome

    • @Ghostrider-gz1tf
      @Ghostrider-gz1tf Рік тому

      ​@@Enkripsanubuntu 2204 version how

    • @parallel3886
      @parallel3886 Рік тому

      ​@@Ghostrider-gz1tfsame problem

    • @huyle9635
      @huyle9635 11 місяців тому

      just type "ubuntu..." command like him but without version
      like "ubuntu --default-user "
      @@Ghostrider-gz1tf

    • @Enkripsan
      @Enkripsan  11 місяців тому

      @@parallel3886 Here is the vidoe- ua-cam.com/video/1fpc9TL5bBo/v-deo.htmlsi=_EcfmEXs4vDgwAiS

  • @naubinhkggffs6159
    @naubinhkggffs6159 Рік тому +1

    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.

    • @donniedraco4310
      @donniedraco4310 Рік тому

      guys this is legit it 100% worked thanks @naubinhkggffs6159

    • @isaacambi1914
      @isaacambi1914 Рік тому

      God bless you. Your solution was perfect

    • @mohammedyasin8127
      @mohammedyasin8127 7 місяців тому

      Thank you so much, my second ChatGPT😂😂

    • @serenasinha5431
      @serenasinha5431 6 місяців тому

      ubuntu command not found

  • @OshMax
    @OshMax 5 місяців тому +1

    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

  • @AbdulBasit-vx5vs
    @AbdulBasit-vx5vs Рік тому +5

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

  • @its_anshu9398
    @its_anshu9398 4 місяці тому +3

    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 👍

  • @ainjacobreyes1073
    @ainjacobreyes1073 Рік тому +1

    life saver it took me three weeks to figure out how to change passwordd

  • @gowthamchowdam262
    @gowthamchowdam262 2 роки тому +8

    but i had dowloaded 22.04.1. can you tell me what is the command for this version?

    • @athirah1619
      @athirah1619 Рік тому

      I have the same problem. Have you resolved it?

    • @valeriohe3856
      @valeriohe3856 Рік тому +1

      @@athirah1619 dude I have the same problem. Did u manage to resolve it?

    • @Pravin33unique95
      @Pravin33unique95 Рік тому

      I have same problem can you help me

    • @adityakashyap9331
      @adityakashyap9331 Рік тому +1

      I stuck with same problem. Any idea guys

    • @jupiter1396
      @jupiter1396 Рік тому +3

      Instead of 2004 u can type 2204 and everything is the same ...sure It will work...

  • @muhamadasif2802
    @muhamadasif2802 10 місяців тому +1

    In my case, it helped ---
    ubuntu config --default-user

    • @Enkripsan
      @Enkripsan  10 місяців тому

      Great ! Thanks for sharing.

  • @backbench3rs659
    @backbench3rs659 24 дні тому

    Your video make my day ... i was struggling how to do it but you make it very well and concise.

  • @yundixiao7059
    @yundixiao7059 5 місяців тому +1

    True life saver! Simple procedure everyone can follow, lots of thanks!

    • @Enkripsan
      @Enkripsan  5 місяців тому

      Most welcome

    • @Enkripsan
      @Enkripsan  5 місяців тому

      Most welcome...Thanks

  • @KiffenBeats
    @KiffenBeats Рік тому +1

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

    • @Enkripsan
      @Enkripsan  6 місяців тому

      You're most welcome!!

  • @Tech.Explorer.X
    @Tech.Explorer.X 26 днів тому

    thank you so much i was looking for hours perfect video works also for debian btw thank you so mcuh for this video

  • @DearSadiq47
    @DearSadiq47 7 місяців тому +2

    You saved my time dude.
    Thank You.
    Regards Dear Sadiq.

  • @sebastianosalarin8925
    @sebastianosalarin8925 Рік тому +2

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

    • @wubdup
      @wubdup Рік тому

      how does it work rn? i cant get into the root

    • @Enkripsan
      @Enkripsan  Рік тому

      @@wubdup It works fine. Please follow the video.

    • @YunusEmreY
      @YunusEmreY Рік тому

      @@wubdup i wrote "ubuntu" instead of "ubuntu2004" and it worked

  • @Moeyy69
    @Moeyy69 Рік тому

    Thanks bro u saved me and my future generation coz i was about to go crazy😂

  • @alisaidbas
    @alisaidbas Рік тому +2

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

  • @arguswil
    @arguswil Рік тому +1

    "ls /home" saved my life !!

  • @Sumit_Kumar_I
    @Sumit_Kumar_I Рік тому +2

    thanks you so much... perfectly working

  • @PollynzDataTech
    @PollynzDataTech 3 місяці тому

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

  • @flexworld9224
    @flexworld9224 7 місяців тому +1

    You're a lifesaver, I just subscribed to your channel

  • @Devydv2000
    @Devydv2000 11 місяців тому +2

    Sir getting an error is not recognised as an internal or external command

    • @Enkripsan
      @Enkripsan  6 місяців тому

      The command was wrong so it is telling error

  • @danielmortada3362
    @danielmortada3362 8 місяців тому +1

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

    • @Enkripsan
      @Enkripsan  8 місяців тому

      Most welcome. Many thanks for your comment.

  • @rohitsingh2k
    @rohitsingh2k Рік тому +1

    Thanks bro, helps a lot! ( Ap kahan the gyani baba 😂)

  • @MianAbdulBasit-is3dw
    @MianAbdulBasit-is3dw 3 місяці тому +1

    watching ur video for the second time bro

    • @Enkripsan
      @Enkripsan  3 місяці тому +1

      Thank you very much

  • @RiftRunnersWR
    @RiftRunnersWR 2 роки тому +4

    This worked perfectly thank you so much!!

  • @Ashutosh_Singh457
    @Ashutosh_Singh457 17 днів тому +1

    video is very usefull to me...
    Thank you

    • @Enkripsan
      @Enkripsan  17 днів тому

      Most welcome. Glad to know it helped.

  • @eggs1170
    @eggs1170 2 місяці тому

    MAN I LOV U. GOD BLESS THE INDIA PEOPLE 😢❤

  • @leejianxing4872
    @leejianxing4872 Рік тому +1

    good man , you save my life. i gonna give you some support maaaaaaaaaa homie

  • @user-po8xv5ki3t
    @user-po8xv5ki3t Рік тому +1

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

  • @bareshashaik3256
    @bareshashaik3256 Рік тому

    Excellent work.... Power is Linux is inevitable.....Thanks buddy!

  • @user-iw1bk2cz2r
    @user-iw1bk2cz2r Місяць тому

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

  • @toppeparker266
    @toppeparker266 2 роки тому +1

    When I type the ubuntu2004 config -default-user root it says ‘ubuntu2004’ is not recognized as an internet or external command please help

  • @serenasinha5431
    @serenasinha5431 6 місяців тому +1

    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

    • @gamerclan402
      @gamerclan402 6 місяців тому +1

      just type : ubuntu config --default-user

    • @Enkripsan
      @Enkripsan  6 місяців тому

      Thanks for sharing.

  • @user-ok2iy5qe1n
    @user-ok2iy5qe1n 6 місяців тому +1

    Thanks bro!, you save my live

    • @Enkripsan
      @Enkripsan  6 місяців тому

      Most welcome. Glad I could help you.

  • @mouadoukarroum5362
    @mouadoukarroum5362 Рік тому

    Thank you so much, it really help me out to change my ubuntu user password.

    • @Enkripsan
      @Enkripsan  6 місяців тому

      You're most welcome!!

  • @ShrutiSharma-nf2gs
    @ShrutiSharma-nf2gs 3 місяці тому

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

  • @user-j23
    @user-j23 Рік тому +3

    thank you! this tutorial is a lifesaver

  • @manudasmd
    @manudasmd Рік тому +1

    You are the best dude.. Thanks a lot..... 🎉🎉🎉🎉🎉🎉

  • @amichoudhary7708
    @amichoudhary7708 6 місяців тому

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

    • @Enkripsan
      @Enkripsan  6 місяців тому

      You're welcome! Glad it worked.

  • @linkjp934
    @linkjp934 10 місяців тому +1

    Thank u verymuch for successful easy instruction

  • @barackobama4552
    @barackobama4552 Рік тому +1

    if you dont know your ubuntu version, just put this command: ubuntu config --default-user root

  • @huyle9635
    @huyle9635 11 місяців тому +1

    thank you sir, u saved me lot of time 😃

  • @PhotonUzumaki
    @PhotonUzumaki 2 роки тому +1

    Very Helpful video thanks 👍

  • @elu_thingol3690
    @elu_thingol3690 5 місяців тому

    You just saved my thesis, Thank you so much

  • @minecraft2048bitgame
    @minecraft2048bitgame 2 місяці тому

    it's working thank you so much you are life saver

  • @davidshankar1346
    @davidshankar1346 10 місяців тому +1

    thank u so much bro,.... you've save my time

  • @abhishekak8597
    @abhishekak8597 7 місяців тому

    THANKYOU SIR, ITS VERY HELPFULL FOR US

    • @Enkripsan
      @Enkripsan  6 місяців тому

      You're most welcome!!

  • @tolu-john
    @tolu-john Рік тому +1

    Thank you so much. This video saved me a lot time

  • @user-zx5hb8ho8d
    @user-zx5hb8ho8d 4 місяці тому

    TRY ONLY "ubuntu config --default-user root"
    If u put the numbers of the version it may not run

    • @Enkripsan
      @Enkripsan  4 місяці тому

      Thanks for sharing.

  • @vijaymudhiraj2590
    @vijaymudhiraj2590 Рік тому

    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. "

    • @Enkripsan
      @Enkripsan  Рік тому +1

      Dont use ubuntu2004, instead use ubuntu.exe

  • @DevBigEazi
    @DevBigEazi Місяць тому +3

    This video just saved my ass. Thanks

  • @ErrorDam
    @ErrorDam Рік тому +1

    thank you so much after researching so much i got u

  • @srivanikrupakagitha2981
    @srivanikrupakagitha2981 4 місяці тому

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

    • @Enkripsan
      @Enkripsan  4 місяці тому

      Glad I could help!

  • @shruthyreddy861
    @shruthyreddy861 Рік тому +1

    Thank you soo much sir

  • @muhammadaaftabfiaz6699
    @muhammadaaftabfiaz6699 7 місяців тому +1

    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..

    • @timothyjosefreyes2051
      @timothyjosefreyes2051 7 місяців тому

      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"

    • @Enkripsan
      @Enkripsan  6 місяців тому

      Thanks for helping out !!

  • @wyattmiller2030
    @wyattmiller2030 Рік тому +2

    You're a life saver.

  • @dipeshacharya650
    @dipeshacharya650 2 роки тому +1

    in my case, ubuntu is asking for my old password. help me, brother

    • @Enkripsan
      @Enkripsan  2 роки тому +2

      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.

  • @sapnendra
    @sapnendra 2 місяці тому

    Thank you really it helped me😀

  • @NebulicNinja
    @NebulicNinja Рік тому +1

    how to know which version of ubuntu do i have?

    • @Enkripsan
      @Enkripsan  Рік тому

      Hi Ghostify, you can run the command 'cat /etc/os-releas'. Thanks for the comment.

  • @yunuskarsen311
    @yunuskarsen311 Рік тому

    Thank you so much.This solved my problem 😊

    • @Enkripsan
      @Enkripsan  Рік тому

      Most welcome! Glad to hear.

  • @ibrahimkaya1155
    @ibrahimkaya1155 Рік тому +1

    hey bro thanks so much.🙏

  • @olexeshxi2586
    @olexeshxi2586 Рік тому +1

    god bless your soul my friend

  • @StricoMr
    @StricoMr Рік тому +1

    Thank you Enkripsan!

  • @saikumarsanagala2960
    @saikumarsanagala2960 2 роки тому +1

    What I need to do for windows 10

  • @zaraubaidu
    @zaraubaidu 9 місяців тому

    thanks man. though it can without the version specification like ubuntu only

  • @user-vj1zi3kq2d
    @user-vj1zi3kq2d 7 місяців тому

    I don't have cmd because my system was completely installed with ubuntu now how can i reset the password

    • @Enkripsan
      @Enkripsan  6 місяців тому

      You need to follow other way.

  • @rkdarkyt1693
    @rkdarkyt1693 12 днів тому

    Very Very Helpful ❤

  • @eggs1170
    @eggs1170 2 місяці тому

    If u Ubuntu version is 18.04.6.
    ubuntu1804 config --default-user (nameusrr)

  • @mariabarrios8549
    @mariabarrios8549 2 роки тому +1

    Awesome, thank you!

  • @annapan9929
    @annapan9929 Рік тому +1

    very helpful ,thank you veru much

  • @munafjoker3248
    @munafjoker3248 3 години тому

    Thank you mate ❤

  • @lovedeepsingh6923
    @lovedeepsingh6923 Місяць тому

    I love you bro
    Thankyou so much 🎉

  • @user-gf3fw9hg4d
    @user-gf3fw9hg4d 10 місяців тому +1

    Excellent

    • @Enkripsan
      @Enkripsan  10 місяців тому

      Thank you very much.

  • @ADIL7777777777777777
    @ADIL7777777777777777 Рік тому

    Thank You! Worked perfectly

  • @magdalenaszulc8997
    @magdalenaszulc8997 Рік тому

    You can aslo just type wsl -d Ubuntu-20.04 -u root

  • @ravirakesh-qj4nk
    @ravirakesh-qj4nk 10 місяців тому +2

    thanks man

  • @user-bj3du1yi1j
    @user-bj3du1yi1j 7 місяців тому +1

    Thank, This is usefull

  • @oluwafemiipinlaiye7421
    @oluwafemiipinlaiye7421 9 місяців тому

    This was helpful thank you

    • @Enkripsan
      @Enkripsan  8 місяців тому

      Glad it was helpful!

  • @12345abcd_qwerty
    @12345abcd_qwerty Рік тому +1

    Thanks a lot for this video.

  • @ugbajaemmanuelndubuisi7610
    @ugbajaemmanuelndubuisi7610 Рік тому +1

    Thanks alot really appreciate

  • @hoonsikkim1115
    @hoonsikkim1115 9 місяців тому

    thank you very much sir!

  • @rakhmatilla7618
    @rakhmatilla7618 Рік тому +1

    ive done it thank youu sooo much uuuuuuuuuuuuuuuuuuuaaaaaaaaaaaaoooooooooo :D

  • @nubecaz
    @nubecaz Рік тому +1

    thanks, was easy , you are a master

  • @Developer_33
    @Developer_33 5 місяців тому

    its says unbuntu2004 isn't recognized as a internal or external command please help 😥😥😥😥😥😥😥😥😥😥

  • @midnight664
    @midnight664 2 місяці тому

    Thank you SIR

  • @aniketbhola
    @aniketbhola 18 днів тому

    Thank you man! 💌

  • @alehs25
    @alehs25 Рік тому

    thank you , i was searching for 1 h, thanks

  • @andedeakouter4686
    @andedeakouter4686 2 роки тому +1

    This video is a life saver.😅

  • @sayanganguly4806
    @sayanganguly4806 9 місяців тому +1

    Thank you!!!

  • @toptrendsword
    @toptrendsword 6 місяців тому +1

    thank you so much

  • @nuranranawaka1451
    @nuranranawaka1451 10 місяців тому +1

    Thanks man!

  • @Dr.Vichitra_101
    @Dr.Vichitra_101 Рік тому

    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

  • @radha8068
    @radha8068 2 місяці тому +1

    Thanks bro ❤

  • @sowndharyaa3539
    @sowndharyaa3539 Рік тому

    Simple but reliable 👍

  • @bullymaguire008
    @bullymaguire008 2 місяці тому +1

    Love you bro