<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: imx8 | root and user password issue in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/imx8-root-and-user-password-issue/m-p/1595631#M201253</link>
    <description>&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/69409"&gt;@hector&lt;/a&gt; Hello,&lt;BR /&gt;&lt;BR /&gt;There is any update?&lt;BR /&gt;I am still waiting for your kind feedback.&lt;BR /&gt;Thanks in advance&lt;BR /&gt;KR,&lt;BR /&gt;Shai</description>
    <pubDate>Wed, 08 Feb 2023 13:51:37 GMT</pubDate>
    <dc:creator>shai_b</dc:creator>
    <dc:date>2023-02-08T13:51:37Z</dc:date>
    <item>
      <title>imx8 | root and user password issue</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/imx8-root-and-user-password-issue/m-p/1590711#M200862</link>
      <description>&lt;P&gt;Hello Team,&lt;/P&gt;&lt;P&gt;My customer is going into mass production and he would like to have one master 'root' password for all their devices.&lt;/P&gt;&lt;P&gt;By default, the login on "root" is enabled on yocto, to enable quicker development and debugging.&lt;/P&gt;&lt;P&gt;This feature is enabled by setting the flag "debug-tweaks" in local.conf file in yocto build.&lt;/P&gt;&lt;P&gt;The exact line looks like this:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;EXTRA_IMAGE_FEATURES ?= "debug-tweaks"&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;The way to add a password according to yocto is:&lt;/P&gt;&lt;P&gt;firstly to comment out the 'debug-tweaks' flag, so the yocto does not force an empty root password, and it is expected from the developer to provide one&lt;/P&gt;&lt;P&gt;secondly is to provide a password and/or other users into the image like this:&lt;BR /&gt;&lt;STRONG&gt;INHERIT += "extrausers"&lt;BR /&gt;EXTRA_USERS_PARAMS = "usermod -p '$(openssl passwd TEST1234)' root;"&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Please find the customer inquiries below:&lt;/P&gt;&lt;P&gt;1) With the above configuration, we have a working root password but is limited to only 8 characters,&lt;/P&gt;&lt;P&gt;Please advise back on how to overcome the characters limitation in log-in password on the?&lt;/P&gt;&lt;P&gt;2) also with the method above we are forced to change the password of root when we log-in to the system for the first time.&lt;/P&gt;&lt;P&gt;Please advise how we can avoid from the system to request&amp;nbsp;changing the password when login to the system for the first time?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Waiting for your kind feedback, Thanks a lot.&lt;/P&gt;&lt;P&gt;KR,&lt;/P&gt;&lt;P&gt;Shai&lt;/P&gt;</description>
      <pubDate>Tue, 31 Jan 2023 16:11:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/imx8-root-and-user-password-issue/m-p/1590711#M200862</guid>
      <dc:creator>shai_b</dc:creator>
      <dc:date>2023-01-31T16:11:39Z</dc:date>
    </item>
    <item>
      <title>Re: imx8 | root and user password issue</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/imx8-root-and-user-password-issue/m-p/1593261#M201031</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/114472"&gt;@shai_b&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;&lt;BR /&gt;I hope you're having a great day. Could you let us know the Yocto version as well as de BSP version your client is using?&lt;BR /&gt;&lt;BR /&gt;Best regards,&lt;BR /&gt;Hector.&lt;/P&gt;</description>
      <pubDate>Fri, 03 Feb 2023 16:32:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/imx8-root-and-user-password-issue/m-p/1593261#M201031</guid>
      <dc:creator>hector_delgado</dc:creator>
      <dc:date>2023-02-03T16:32:46Z</dc:date>
    </item>
    <item>
      <title>Re: imx8 | root and user password issue</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/imx8-root-and-user-password-issue/m-p/1593472#M201045</link>
      <description>&lt;P&gt;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/207913"&gt;@hector_delgado&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;The Yocto release is "Honister" (kernel v5.15.5), used for imx8mm-evk image.&lt;/P&gt;&lt;P&gt;Waiting for your kind feedback, Thanks a lot.&lt;/P&gt;&lt;P&gt;KR,&lt;/P&gt;&lt;P&gt;Shai&lt;/P&gt;</description>
      <pubDate>Sat, 04 Feb 2023 11:55:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/imx8-root-and-user-password-issue/m-p/1593472#M201045</guid>
      <dc:creator>shai_b</dc:creator>
      <dc:date>2023-02-04T11:55:49Z</dc:date>
    </item>
    <item>
      <title>Re: imx8 | root and user password issue</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/imx8-root-and-user-password-issue/m-p/1595631#M201253</link>
      <description>&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/69409"&gt;@hector&lt;/a&gt; Hello,&lt;BR /&gt;&lt;BR /&gt;There is any update?&lt;BR /&gt;I am still waiting for your kind feedback.&lt;BR /&gt;Thanks in advance&lt;BR /&gt;KR,&lt;BR /&gt;Shai</description>
      <pubDate>Wed, 08 Feb 2023 13:51:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/imx8-root-and-user-password-issue/m-p/1595631#M201253</guid>
      <dc:creator>shai_b</dc:creator>
      <dc:date>2023-02-08T13:51:37Z</dc:date>
    </item>
    <item>
      <title>Re: imx8 | root and user password issue</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/imx8-root-and-user-password-issue/m-p/1596908#M201341</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/114472"&gt;@shai_b&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;&lt;BR /&gt;I'm currently reviewing this case, sorry for the delay.&lt;BR /&gt;&lt;BR /&gt;Best regards,&lt;BR /&gt;Hector.&lt;/P&gt;</description>
      <pubDate>Fri, 10 Feb 2023 00:21:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/imx8-root-and-user-password-issue/m-p/1596908#M201341</guid>
      <dc:creator>hector_delgado</dc:creator>
      <dc:date>2023-02-10T00:21:28Z</dc:date>
    </item>
    <item>
      <title>Re: imx8 | root and user password issue</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/imx8-root-and-user-password-issue/m-p/1597949#M201415</link>
      <description>&lt;P&gt;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/207913"&gt;@hector_delgado&lt;/a&gt;&amp;nbsp;Hello,&lt;/P&gt;&lt;P&gt;There is any news?&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;Shai&lt;/P&gt;</description>
      <pubDate>Mon, 13 Feb 2023 07:27:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/imx8-root-and-user-password-issue/m-p/1597949#M201415</guid>
      <dc:creator>shai_b</dc:creator>
      <dc:date>2023-02-13T07:27:22Z</dc:date>
    </item>
    <item>
      <title>Re: imx8 | root and user password issue</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/imx8-root-and-user-password-issue/m-p/1599780#M201568</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/114472"&gt;@shai_b&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;&lt;BR /&gt;I hope you're doing well. Has your customer tried another form of encryption for the password? For example, the Yocto documentation uses the following as an example:&lt;/P&gt;
&lt;PRE&gt;&lt;SPAN class="n"&gt;mkpasswd&lt;/SPAN&gt; &lt;SPAN class="o"&gt;-&lt;/SPAN&gt;&lt;SPAN class="n"&gt;m&lt;/SPAN&gt; &lt;SPAN class="n"&gt;sha256crypt&lt;/SPAN&gt; &lt;SPAN class="n"&gt;tester01&lt;/SPAN&gt;&lt;/PRE&gt;
&lt;P&gt;Which it's result ends up assigned to a variable and then to the specific user:&lt;/P&gt;
&lt;PRE&gt;&lt;SPAN class="n"&gt;inherit&lt;/SPAN&gt; &lt;SPAN class="n"&gt;extrausers&lt;/SPAN&gt;
&lt;SPAN class="n"&gt;PASSWD&lt;/SPAN&gt; &lt;SPAN class="o"&gt;=&lt;/SPAN&gt; &lt;SPAN class="s2"&gt;"\$X\$ABC123\$A-Long-Hash"&lt;/SPAN&gt;
&lt;SPAN class="n"&gt;EXTRA_USERS_PARAMS&lt;/SPAN&gt; &lt;SPAN class="o"&gt;=&lt;/SPAN&gt; &lt;SPAN class="s2"&gt;"&lt;/SPAN&gt;&lt;SPAN class="se"&gt;\&lt;/SPAN&gt;
&lt;SPAN class="s2"&gt;    useradd -p '$&lt;/SPAN&gt;&lt;SPAN class="si"&gt;{PASSWD}&lt;/SPAN&gt;&lt;SPAN class="s2"&gt;' root; &lt;/SPAN&gt;
&lt;SPAN class="s2"&gt;    "&lt;/SPAN&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;I'd also like to add the following warning mentioned in the documentation:&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;"NOTE: From a security perspective, hardcoding a default password is not generally a good idea or even legal in some jurisdictions. It is recommended that you do not do this if you are building a production image."&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;Let me know if this information was helpful.&lt;BR /&gt;&lt;BR /&gt;Best regards,&lt;BR /&gt;Hector,&lt;/P&gt;</description>
      <pubDate>Wed, 15 Feb 2023 18:27:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/imx8-root-and-user-password-issue/m-p/1599780#M201568</guid>
      <dc:creator>hector_delgado</dc:creator>
      <dc:date>2023-02-15T18:27:56Z</dc:date>
    </item>
  </channel>
</rss>

