{"id":12159,"date":"2018-07-12T05:19:27","date_gmt":"2018-07-12T05:19:27","guid":{"rendered":"https:\/\/www.top-password.com\/blog\/?p=12159"},"modified":"2018-07-12T05:22:55","modified_gmt":"2018-07-12T05:22:55","slug":"forgot-linux-bash-password-in-windows-10","status":"publish","type":"post","link":"https:\/\/www.top-password.com\/blog\/forgot-linux-bash-password-in-windows-10\/","title":{"rendered":"Forgot Linux Bash Password in Windows 10? How Can I Reset?"},"content":{"rendered":"<p>How can I reset the Bash password of Ubuntu Linux shell in Windows 10? When you install Ubuntu Bash shell on your Windows 10 PC, Windows will prompt you to create a UNIX user account. If you&#8217;ve forgotten the password, this tutorial can help you reset it easily.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.top-password.com\/blog\/wp-content\/uploads\/2018\/07\/forgot-windows-10-linux-bash-password.png\" alt=\"\" width=\"516\" height=\"113\" class=\"alignnone size-full wp-image-12168\" \/><\/p>\n<p><strong>How to Reset Linux Bash Shell Password in Windows 10?<\/strong><\/p>\n<ol>\n<li>To get started, open a regular Command Prompt (or PowerShell). Just type <strong>cmd<\/strong> in Cortana search box on the taskbar, and you can then click &#8220;<strong>Command Prompt<\/strong>&#8221; from the result.\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.top-password.com\/blog\/wp-content\/uploads\/2018\/07\/open-command-prompt-in-windows-10.png\" alt=\"\" width=\"394\" height=\"454\" class=\"alignnone size-full wp-image-12165\" \/>\n<\/li>\n<li>Next, run the following command to set &#8220;root&#8221; as the default user for Linux Bash shell.<br \/>\n<code>ubuntu config --default-user root<\/code><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.top-password.com\/blog\/wp-content\/uploads\/2018\/07\/change-default-user-for-bash-shell.png\" alt=\"\" width=\"512\" height=\"139\" class=\"alignnone size-full wp-image-12166\" \/><\/p>\n<p> \tIf you&#8217;re running Windows 10 Creators update or earlier, you can change the default Bash user to &#8220;root&#8221; by running this command:<br \/>\n<code>lxrun \/setdefaultuser root<\/code><\/li>\n<li>The next time you open the Linux Bash shell, it will log you as root without asking a password. You can use the passwd command to set up a new password for any UNIX user account.<br \/>\n<code>passwd user_name<\/code><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.top-password.com\/blog\/wp-content\/uploads\/2018\/07\/reset-linux-bash-password-in-windows-10.png\" alt=\"\" width=\"503\" height=\"126\" class=\"alignnone size-full wp-image-12167\" \/>\n<\/li>\n<li>The last step is to reset your default user back to your normal Linux account. Type this in the Command Prompt:<br \/>\n<code>ubuntu config --default-user user_name<\/code><\/p>\n<p> \tor execute this command:<br \/>\n<code>lxrun.exe \/setdefaultuser user_name<\/code><\/p>\n<p>That&#8217;s it!\n<\/li>\n<\/ol>\n<!-- AddThis Advanced Settings generic via filter on the_content --><!-- AddThis Share Buttons generic via filter on the_content -->","protected":false},"excerpt":{"rendered":"<p>How can I reset the Bash password of Ubuntu Linux shell in Windows 10? When you install Ubuntu Bash shell on your Windows 10 PC, Windows will prompt you to create a UNIX user account. If you&#8217;ve forgotten the password, this tutorial can help you reset it easily. How to Reset Linux Bash Shell Password [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1,10,1894],"tags":[3869,3868],"class_list":["post-12159","post","type-post","status-publish","format-standard","hentry","category-others","category-tips-tricks","category-windows-10","tag-windows-10-bash-forgot-password","tag-windows-10-bash-reset-password"],"_links":{"self":[{"href":"https:\/\/www.top-password.com\/blog\/wp-json\/wp\/v2\/posts\/12159","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.top-password.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.top-password.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.top-password.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.top-password.com\/blog\/wp-json\/wp\/v2\/comments?post=12159"}],"version-history":[{"count":9,"href":"https:\/\/www.top-password.com\/blog\/wp-json\/wp\/v2\/posts\/12159\/revisions"}],"predecessor-version":[{"id":12172,"href":"https:\/\/www.top-password.com\/blog\/wp-json\/wp\/v2\/posts\/12159\/revisions\/12172"}],"wp:attachment":[{"href":"https:\/\/www.top-password.com\/blog\/wp-json\/wp\/v2\/media?parent=12159"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.top-password.com\/blog\/wp-json\/wp\/v2\/categories?post=12159"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.top-password.com\/blog\/wp-json\/wp\/v2\/tags?post=12159"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}