Find answers, ask questions, and connect with our <br>community around the world.

Home Forums OpenFOAM Forum Forgotten password

  • Forgotten password

    Posted by umara khan on November 13, 2023 at 9:32 am

    Hello,

    I forgot the ubuntu username password and try changing it with the method of switching it to root user. but it doesnt work, Ubuntu 22.04 version on WSl 2 i have, any tips on how i can do that

    umara khan replied 7 months ago 2 Members · 3 Replies
  • 3 Replies
  • umara khan

    Member
    November 13, 2023 at 10:26 am

    Solved!

  • Barış Bicer

    Moderator
    November 13, 2023 at 8:56 pm

    How did you solve please post here Umara and other people can also learn

  • umara khan

    Member
    November 14, 2023 at 11:42 am

    Step 1. Check ubuntu version installed on comp. Open Microsoft store, open Ubuntu app installed (in my case is Ubuntu 22.04.2 LTS then in description note the command for this app, in my case it is “ubuntu2204”

    Step 2: Open command terminal from start menu, type (to change user to root)

    <code style="cursor: text;">ubuntu2204 config --default-user root

    Step 3: Open Ubuntu and type following, give ur username for which password need to be created

    <code style="cursor: text;">passwd username

    Step 4: after setting new password, go back to command terminal and set again user from root

    <code style="cursor: text;">ubuntu2204 config --default-user username

Log in to reply.

error: Content is protected !!