Results 1 to 8 of 8

Thread: How do I reset the password in WSL2 in Ubuntu 20.4LTS?

  1. #1
    Join Date
    Feb 2010
    Beans
    18

    How do I reset the password in WSL2 in Ubuntu 20.4LTS?

    I was following a video that said :

    Change to the root user after logging in:

    sudo su - # I found out we can do sudo -s

    So, here's where I am stuck:

    tangara@DESKTOP-SB41UI7:~$ sudo -s
    [sudo] password for tangara:

    Now, it seems the root user is me tangara.

    But, I have forgotten my password.

    How do I reset it ?

    I am on Windows 10 system.

    Hope someone can help me out on this.

    Tks a million

  2. #2
    Join Date
    Mar 2010
    Location
    Squidbilly-Land
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: How do I reset the password in WSL2 in Ubuntu 20.4LTS?

    I don't know anything about WSL2.
    Setting any root password is not the Ubuntu way. In general, Ubuntu's root account doesn't have any password.
    https://help.ubuntu.com/community/RootSudo
    The passwd command can set the password for any user, however.

    But WSL2 is from Microsoft and they can do whatever they want, as we've learned over the decades.

    There is only 1 userid named "root". Your userid is ****not**** root on ubuntu. It may be able to elevate privilege for a short time using sudo, but that isn't the same as "being root."

  3. #3
    Join Date
    Mar 2011
    Location
    U.K.
    Beans
    Hidden!
    Distro
    Ubuntu 22.04 Jammy Jellyfish

    Re: How do I reset the password in WSL2 in Ubuntu 20.4LTS?

    But WSL2 is from Microsoft and they can do whatever they want, as we've learned over the decades.


    Be aware that if you are introduced to Windows 11, from what I read. Microsoft forces secure boot on always.
    Unlike today where it is optional.
    The conclusion I draw is that Windows 11 and Ubuntu cannot coexist in dual-boot mode, other than using the native Ubuntu offered by WSL2 which is not dual-boot. I have bookmarked that little nugget of information.


  4. #4
    Join Date
    Mar 2010
    Location
    Squidbilly-Land
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: How do I reset the password in WSL2 in Ubuntu 20.4LTS?

    Quote Originally Posted by dragonfly41 View Post
    Be aware that if you are introduced to Windows 11, from what I read. Microsoft forces secure boot on always.
    Ouch. Happy to be using virtual machines for Windows instead.

  5. #5
    Join Date
    Feb 2010
    Beans
    18

    Re: How do I reset the password in WSL2 in Ubuntu 20.4LTS?

    sorry guys, I managed to install the things I need in ubuntu system but now how do I make it change back to tangara@destop with the $ ?

  6. #6
    Join Date
    Jul 2008
    Location
    The Left Coast of the USA
    Beans
    Hidden!
    Distro
    Kubuntu

    Re: How do I reset the password in WSL2 in Ubuntu 20.4LTS?

    Type

    Code:
    exit
    Please read The Forum Rules and The Forum Posting Guidelines

    A thing discovered and kept to oneself must be discovered time and again by others. A thing discovered and shared with others need be discovered only the once.
    This universe is crazy. I'm going back to my own.

  7. #7
    Join Date
    Jan 2006
    Location
    Sunny Southend-on-Sea
    Beans
    8,430
    Distro
    Kubuntu 20.04 Focal Fossa

    Re: How do I reset the password in WSL2 in Ubuntu 20.4LTS?

    Quote Originally Posted by dragonfly41 View Post
    Microsoft forces secure boot on always.
    Unlike today where it is optional.
    The conclusion I draw is that Windows 11 and Ubuntu cannot coexist in dual-boot mode, other than using the native Ubuntu offered by WSL2 which is not dual-boot.
    Ubuntu works fine with Secure Boot. The only caveat is that if you're using kernel modules that aren't signed by Canonical (VirtualBox and the Nvidia driver being prime candidates) then you need to sign them yourself and tell your UEFI to trust your signature.

  8. #8
    Join Date
    Mar 2011
    Location
    U.K.
    Beans
    Hidden!
    Distro
    Ubuntu 22.04 Jammy Jellyfish

    Re: How do I reset the password in WSL2 in Ubuntu 20.4LTS?

    To close on this point about secure boot I searched further and found this thread which indicates that I can use ReFIND as signed boot loader which is ideal for my own usage (I use ReFIND today in dual boot).

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •