<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Michael J Moraes</title>
    <description>The latest articles on DEV Community by Michael J Moraes (@michaeljmoraes).</description>
    <link>https://dev.to/michaeljmoraes</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F437458%2F5622ac36-2ffb-4489-9717-dad7eab1a890.jpeg</url>
      <title>DEV Community: Michael J Moraes</title>
      <link>https://dev.to/michaeljmoraes</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/michaeljmoraes"/>
    <language>en</language>
    <item>
      <title>Reset WSL2 User Password</title>
      <dc:creator>Michael J Moraes</dc:creator>
      <pubDate>Tue, 21 Jul 2020 22:40:19 +0000</pubDate>
      <link>https://dev.to/michaeljmoraes/reset-wsl2-user-password-214p</link>
      <guid>https://dev.to/michaeljmoraes/reset-wsl2-user-password-214p</guid>
      <description>&lt;p&gt;Considering tha you are using Ubuntu on Windows with WSL2.&lt;/p&gt;

&lt;p&gt;Tips: If you dont know what is your WSL2 version, you discovery using powershell with the command: wsl -l&lt;/p&gt;

&lt;p&gt;In my case, the return was ubuntu-20.04, remove the special characters e you will have the command for version like: ubuntu2004, i will call this of ubuntuversion.&lt;/p&gt;

&lt;p&gt;Baby steps&lt;br&gt;
1 - Change the default user to root.&lt;br&gt;
-&amp;gt; Open PowerShell and type: ubuntuversion --default-user root&lt;/p&gt;

&lt;p&gt;2 - Change your user password&lt;br&gt;
-&amp;gt; Open your linux bash(your linux version)&lt;br&gt;
-&amp;gt; You will see the user root identified&lt;br&gt;
-&amp;gt; Type: passwd newpassword&lt;br&gt;
-&amp;gt; Type your new password twice&lt;br&gt;
-&amp;gt; Exit from bash&lt;/p&gt;

&lt;p&gt;3 - Configuring the default WSL2 user for your user&lt;br&gt;
-&amp;gt; Open PowerShell and type ubuntuversion --default-user username&lt;br&gt;
-&amp;gt; Exit of PowerShell&lt;/p&gt;

&lt;p&gt;4 - Testing&lt;br&gt;
-&amp;gt; Open your WSL2 Linux bash and try typing sudo ls&lt;br&gt;
-&amp;gt; Put your new password&lt;/p&gt;

&lt;p&gt;5 - Enjoy&lt;br&gt;
I´m Michael Jackson from CyberEduca - &lt;a href="https://www.linkedin.com/in/michaeljmoraes"&gt;https://www.linkedin.com/in/michaeljmoraes&lt;/a&gt;&lt;/p&gt;

</description>
    </item>
  </channel>
</rss>
