<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>WSL - TheCodeBuzz</title>
	<atom:link href="https://thecodebuzz.com/category/wsl/feed/" rel="self" type="application/rss+xml" />
	<link>https://thecodebuzz.com</link>
	<description>Best Practices for Software Development</description>
	<lastBuildDate>Tue, 03 Oct 2023 20:59:36 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	

<image>
	<url>https://thecodebuzz.com/wp-content/uploads/2022/11/cropped-android-chrome-512x512-1-1-51x51.jpg</url>
	<title>WSL - TheCodeBuzz</title>
	<link>https://thecodebuzz.com</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>Change the root password in Windows 10 WSL</title>
		<link>https://thecodebuzz.com/change-root-password-in-windows-10-wsl-forgot-password/</link>
					<comments>https://thecodebuzz.com/change-root-password-in-windows-10-wsl-forgot-password/#respond</comments>
		
		<dc:creator><![CDATA[admin]]></dc:creator>
		<pubDate>Thu, 15 Sep 2022 20:43:00 +0000</pubDate>
				<category><![CDATA[WSL]]></category>
		<category><![CDATA[forgot sudo password]]></category>
		<category><![CDATA[remove wsl password root password]]></category>
		<category><![CDATA[reset sudo password ubuntu windows 10]]></category>
		<category><![CDATA[wsl change root password]]></category>
		<category><![CDATA[wsl default root password]]></category>
		<category><![CDATA[wsl password]]></category>
		<category><![CDATA[wsl sudo password not working]]></category>
		<category><![CDATA[wsl ubuntu default]]></category>
		<category><![CDATA[wsl2 default root password]]></category>
		<guid isPermaLink="false">https://www.thecodebuzz.com/?p=23524</guid>

					<description><![CDATA[<p>Change the root password in Windows 10 WSL Today in this article, we will learn how to change the root password for Wondows10 WSL. Recently I had an issue executing a few commands in WSL. Later I realized, I forgot the password and the best way way to fix the issue is changing the password. [&#8230;]</p>
<p>The post <a href="https://thecodebuzz.com/change-root-password-in-windows-10-wsl-forgot-password/">Change the root password in Windows 10 WSL</a> first appeared on <a href="https://thecodebuzz.com">TheCodeBuzz</a>.</p>]]></description>
										<content:encoded><![CDATA[<h1 class="wp-block-heading">Change the root password in Windows 10 WSL</h1>



<figure class="wp-block-image size-full is-resized"><img fetchpriority="high" decoding="async" src="https://www.thecodebuzz.com/wp-content/uploads/2022/09/forgot-password-in-Windows-10-WSL-1-1.jpg" alt="" class="wp-image-23531" width="427" height="133" srcset="https://thecodebuzz.com/wp-content/uploads/2022/09/forgot-password-in-Windows-10-WSL-1-1.jpg 336w, https://thecodebuzz.com/wp-content/uploads/2022/09/forgot-password-in-Windows-10-WSL-1-1-300x94.jpg 300w" sizes="(max-width: 427px) 100vw, 427px" /></figure>



<p>Today in this article, we will learn how to change the root password for Wondows10 WSL.</p>



<p></p>



<p>Recently I had an issue executing a few commands in WSL.</p>



<p></p>



<figure class="wp-block-image size-large"><img decoding="async" width="1024" height="370" src="https://www.thecodebuzz.com/wp-content/uploads/2022/09/image-1024x370.png" alt="" class="wp-image-23526" srcset="https://thecodebuzz.com/wp-content/uploads/2022/09/image-1024x370.png 1024w, https://thecodebuzz.com/wp-content/uploads/2022/09/image-300x108.png 300w, https://thecodebuzz.com/wp-content/uploads/2022/09/image-768x278.png 768w, https://thecodebuzz.com/wp-content/uploads/2022/09/image-1536x556.png 1536w, https://thecodebuzz.com/wp-content/uploads/2022/09/image-785x284.png 785w, https://thecodebuzz.com/wp-content/uploads/2022/09/image.png 1565w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<p>Later I realized, I forgot the password and the best way way to fix the issue is changing the password.</p>



<p>I had to change the root password using the WSL root command as below,</p>



<p></p>



<ul class="wp-block-list"><li>Open Command Prompt</li></ul>



<ul class="wp-block-list"><li>Type below command </li></ul>



<p></p>



<pre class="wp-block-preformatted has-medium-font-size"> wsl -u root </pre>



<p></p>



<ul class="wp-block-list"><li>Once you enter the panel as root type below command,</li></ul>



<pre class="wp-block-preformatted has-medium-font-size">

passwd &lt;UserName>

</pre>



<figure class="wp-block-image size-large"><img decoding="async" width="1024" height="285" src="https://www.thecodebuzz.com/wp-content/uploads/2022/09/Change-the-root-password-in-Windows-10-WSL-1024x285.jpg" alt="" class="wp-image-23527" srcset="https://thecodebuzz.com/wp-content/uploads/2022/09/Change-the-root-password-in-Windows-10-WSL-1024x285.jpg 1024w, https://thecodebuzz.com/wp-content/uploads/2022/09/Change-the-root-password-in-Windows-10-WSL-300x83.jpg 300w, https://thecodebuzz.com/wp-content/uploads/2022/09/Change-the-root-password-in-Windows-10-WSL-768x214.jpg 768w, https://thecodebuzz.com/wp-content/uploads/2022/09/Change-the-root-password-in-Windows-10-WSL-1536x427.jpg 1536w, https://thecodebuzz.com/wp-content/uploads/2022/09/Change-the-root-password-in-Windows-10-WSL-785x218.jpg 785w, https://thecodebuzz.com/wp-content/uploads/2022/09/Change-the-root-password-in-Windows-10-WSL.jpg 1750w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<p></p>



<p>That&#8217;s all, you will be all set to log in now.</p>



<p></p>



<p>That&#8217;s all! Happy coding!</p>



<p></p>



<p>Does this help you fix your issue? </p>



<p></p>



<p>Do you have any better solutions or suggestions? Please sound off your comments below.</p>



<hr>



<p class=""></p>



<p class="has-background" style="background-color:#b6d9ac;font-size:18px"><br>Please <strong><em>bookmark </em></strong>this page and <em><strong>share </strong></em>it with your friends.                                                    Please <a href="https://www.thecodebuzz.com/subscription/" target="_blank" rel="noreferrer noopener"><em><mark style="background-color:rgba(0, 0, 0, 0)" class="has-inline-color has-luminous-vivid-orange-color"><strong>Subscribe</strong> </mark></em></a>to the blog to receive notifications on freshly published (2025) best practices and guidelines for software design and development.</p>




<br>



<hr>



<p class=""></p>



<p></p>



<p> </p><p>The post <a href="https://thecodebuzz.com/change-root-password-in-windows-10-wsl-forgot-password/">Change the root password in Windows 10 WSL</a> first appeared on <a href="https://thecodebuzz.com">TheCodeBuzz</a>.</p>]]></content:encoded>
					
					<wfw:commentRss>https://thecodebuzz.com/change-root-password-in-windows-10-wsl-forgot-password/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
