Reset User Password on Ubuntu Terminal in Windows 10 EnvironmentHow is being able to break into any Linux machine through grub2 secure?Admin password reset successful, but not recognized on rebootHow to reset or recover password without Grub?Lost password/the user “Sara” doesn't existSamba: Share directory with a specific Windows 10 user without password requiredReset owner password on Ubuntu 18.04 single-boot Dell laptop

What exactly is meant by "partial function" in functional programming?

Why doesn't the nucleus have "nucleus-probability cloud"?

Subassembly identification

What plausible reasons why people forget they didn't originally live on this new planet?

Do neurons of a neural network model a linear relationship?

Replacing each letter with the letter that is in the corresponding position from the end of the English alphabet

What is the white stuff emerging from a hole on the surface of Mars?

Is the phrase “You are requested” polite or rude?

Should I respond to a sabotage accusation e-mail at work?

Fantasy series about a human girl with gold tattoos who makes too much blood

If equal temperament divides octave into 12 equal parts, why hertz differences are not the same but element 12th of two?

10x10 grid with no unpainted hexominoes

Can an Unconscious PC hear you?

What's the safest shape for homemade hard-candy

For piano scales, should I let go of the previous key before I hit the next one?

Modeling the Round (Nearest Integer) function

Is this really played by 2200+ players?

Do I need a visa for Japan as a New Zealand Citizen?

Use GPLv3 library in a closed system (no software distribution)

How to run fortran77 program with inputs from file?

Probability of a 500 year flood occuring in the next 100 years - comparison of approaches

Matrix class in C#

Compress .hex file for micro-controller

Diagnosing instant circuit breaker tripping, with nothing connected



Reset User Password on Ubuntu Terminal in Windows 10 Environment


How is being able to break into any Linux machine through grub2 secure?Admin password reset successful, but not recognized on rebootHow to reset or recover password without Grub?Lost password/the user “Sara” doesn't existSamba: Share directory with a specific Windows 10 user without password requiredReset owner password on Ubuntu 18.04 single-boot Dell laptop






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty
margin-bottom:0;









1

















I am using Ubuntu on Windows, downloaded from the Microsoft Store. I created a user password, but it appears I either forgot it or typed it in wrong. For sudo commands, my user password is not working.



Since I cannot reboot the system as Linux using Grub to reset the password, is there another way to reset my user password without re-installing the app (I have several applications already set up)?










share|improve this question


























  • I believe this method still works if you have an actual machine running Ubuntu, but probably not with a VM/container. There is not a user-friendly GUI option to reset a lost password, unless you have access to the root user, you can prompt to change the password sudo passwd user with user being the username whose password you want to change.

    – Nmath
    May 28 at 21:30

















1

















I am using Ubuntu on Windows, downloaded from the Microsoft Store. I created a user password, but it appears I either forgot it or typed it in wrong. For sudo commands, my user password is not working.



Since I cannot reboot the system as Linux using Grub to reset the password, is there another way to reset my user password without re-installing the app (I have several applications already set up)?










share|improve this question


























  • I believe this method still works if you have an actual machine running Ubuntu, but probably not with a VM/container. There is not a user-friendly GUI option to reset a lost password, unless you have access to the root user, you can prompt to change the password sudo passwd user with user being the username whose password you want to change.

    – Nmath
    May 28 at 21:30













1












1








1








I am using Ubuntu on Windows, downloaded from the Microsoft Store. I created a user password, but it appears I either forgot it or typed it in wrong. For sudo commands, my user password is not working.



Since I cannot reboot the system as Linux using Grub to reset the password, is there another way to reset my user password without re-installing the app (I have several applications already set up)?










share|improve this question















I am using Ubuntu on Windows, downloaded from the Microsoft Store. I created a user password, but it appears I either forgot it or typed it in wrong. For sudo commands, my user password is not working.



Since I cannot reboot the system as Linux using Grub to reset the password, is there another way to reset my user password without re-installing the app (I have several applications already set up)?







password windows-10 password-recovery






share|improve this question














share|improve this question











share|improve this question




share|improve this question










asked May 28 at 21:00









tpintotpinto

61 bronze badge




61 bronze badge















  • I believe this method still works if you have an actual machine running Ubuntu, but probably not with a VM/container. There is not a user-friendly GUI option to reset a lost password, unless you have access to the root user, you can prompt to change the password sudo passwd user with user being the username whose password you want to change.

    – Nmath
    May 28 at 21:30

















  • I believe this method still works if you have an actual machine running Ubuntu, but probably not with a VM/container. There is not a user-friendly GUI option to reset a lost password, unless you have access to the root user, you can prompt to change the password sudo passwd user with user being the username whose password you want to change.

    – Nmath
    May 28 at 21:30
















I believe this method still works if you have an actual machine running Ubuntu, but probably not with a VM/container. There is not a user-friendly GUI option to reset a lost password, unless you have access to the root user, you can prompt to change the password sudo passwd user with user being the username whose password you want to change.

– Nmath
May 28 at 21:30





I believe this method still works if you have an actual machine running Ubuntu, but probably not with a VM/container. There is not a user-friendly GUI option to reset a lost password, unless you have access to the root user, you can prompt to change the password sudo passwd user with user being the username whose password you want to change.

– Nmath
May 28 at 21:30










1 Answer
1






active

oldest

votes


















1


















Open the command prompt, type either ubuntu config --default-user root or lxrun /setdefaultuser root. Hit Enter.



Next, open the Linux Bash shell and it will log you as root without asking a password. So you can then use the following command to reset your forgotten user password:



passwd user_name


When done, open the command prompt and run this command:



ubuntu config --default-user user_name


This will set your Linux Bash shell to run with your regular user.



Source: https://www.top-password.com/blog/forgot-linux-bash-password-in-windows-10/






share|improve this answer



























    Your Answer








    StackExchange.ready(function()
    var channelOptions =
    tags: "".split(" "),
    id: "89"
    ;
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function()
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled)
    StackExchange.using("snippets", function()
    createEditor();
    );

    else
    createEditor();

    );

    function createEditor()
    StackExchange.prepareEditor(
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: true,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    imageUploader:
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/4.0/"u003ecc by-sa 4.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    ,
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    );



    );














    draft saved

    draft discarded
















    StackExchange.ready(
    function ()
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1146948%2freset-user-password-on-ubuntu-terminal-in-windows-10-environment%23new-answer', 'question_page');

    );

    Post as a guest















    Required, but never shown


























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    1


















    Open the command prompt, type either ubuntu config --default-user root or lxrun /setdefaultuser root. Hit Enter.



    Next, open the Linux Bash shell and it will log you as root without asking a password. So you can then use the following command to reset your forgotten user password:



    passwd user_name


    When done, open the command prompt and run this command:



    ubuntu config --default-user user_name


    This will set your Linux Bash shell to run with your regular user.



    Source: https://www.top-password.com/blog/forgot-linux-bash-password-in-windows-10/






    share|improve this answer






























      1


















      Open the command prompt, type either ubuntu config --default-user root or lxrun /setdefaultuser root. Hit Enter.



      Next, open the Linux Bash shell and it will log you as root without asking a password. So you can then use the following command to reset your forgotten user password:



      passwd user_name


      When done, open the command prompt and run this command:



      ubuntu config --default-user user_name


      This will set your Linux Bash shell to run with your regular user.



      Source: https://www.top-password.com/blog/forgot-linux-bash-password-in-windows-10/






      share|improve this answer




























        1














        1










        1









        Open the command prompt, type either ubuntu config --default-user root or lxrun /setdefaultuser root. Hit Enter.



        Next, open the Linux Bash shell and it will log you as root without asking a password. So you can then use the following command to reset your forgotten user password:



        passwd user_name


        When done, open the command prompt and run this command:



        ubuntu config --default-user user_name


        This will set your Linux Bash shell to run with your regular user.



        Source: https://www.top-password.com/blog/forgot-linux-bash-password-in-windows-10/






        share|improve this answer














        Open the command prompt, type either ubuntu config --default-user root or lxrun /setdefaultuser root. Hit Enter.



        Next, open the Linux Bash shell and it will log you as root without asking a password. So you can then use the following command to reset your forgotten user password:



        passwd user_name


        When done, open the command prompt and run this command:



        ubuntu config --default-user user_name


        This will set your Linux Bash shell to run with your regular user.



        Source: https://www.top-password.com/blog/forgot-linux-bash-password-in-windows-10/







        share|improve this answer













        share|improve this answer




        share|improve this answer










        answered May 29 at 1:26









        B_ElwellB_Elwell

        111 bronze badge




        111 bronze badge































            draft saved

            draft discarded















































            Thanks for contributing an answer to Ask Ubuntu!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid


            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.

            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1146948%2freset-user-password-on-ubuntu-terminal-in-windows-10-environment%23new-answer', 'question_page');

            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown









            Popular posts from this blog

            Distance measures on a map of a game The 2019 Stack Overflow Developer Survey Results Are Inmin distance in a graphShortest distance path on contour plotHow to plot a tilted map?Finding points outside of a diskDelaunay link distanceAnnulus from GeoDisks: drawing a ring on a mapNegative Correlation DistanceFind distance along a path (GPS coordinates)Finding position at given distance in a GeoPathMathematics behind distance estimation using camera

            How to get a smooth, uniform ParametricPlot of a 2D Region?How to plot a complicated Region?How to exclude a region from ParametricPlotHow discretize a region placing vertices on a specific non-uniform gridHow to transform a Plot or a ParametricPlot into a RegionHow can I get a smooth plot of a bounded region?Smooth ParametricPlot3D with RegionFunction?Smooth border of a region ParametricPlotSmooth region boundarySmooth region plot from list of pointsGet minimum y of a certain x in a region

            Genealogie vun de Merowenger Vum Merowech bis zum Chilperich I. | Navigatiounsmenü