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;
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
add a comment
|
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
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 passwordsudo passwd userwithuserbeing the username whose password you want to change.
– Nmath
May 28 at 21:30
add a comment
|
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
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
password windows-10 password-recovery
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 passwordsudo passwd userwithuserbeing the username whose password you want to change.
– Nmath
May 28 at 21:30
add a comment
|
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 passwordsudo passwd userwithuserbeing 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
add a comment
|
1 Answer
1
active
oldest
votes
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/
add a comment
|
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
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
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/
add a comment
|
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/
add a comment
|
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/
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/
answered May 29 at 1:26
B_ElwellB_Elwell
111 bronze badge
111 bronze badge
add a comment
|
add a comment
|
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.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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
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 userwithuserbeing the username whose password you want to change.– Nmath
May 28 at 21:30