<?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>i.MX ProcessorsのトピックRe: Not able to login as root user with the RFS generated</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/Not-able-to-login-as-root-user-with-the-RFS-generated/m-p/1582140#M200043</link>
    <description>&lt;P&gt;1) refer to the link &lt;A href="https://docs.yoctoproject.org/ref-manual/classes.html#extrausers-bbclass" target="_blank"&gt;https://docs.yoctoproject.org/ref-manual/classes.html#extrausers-bbclass&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;2)remove debug-weaks in the local.conf&lt;/P&gt;
&lt;P&gt;This is a reference local.conf change; where the debug-tweaks has been deleted and line 30-35 showing how to set root password and add user named as user1; which has sudo capability.&lt;/P&gt;
&lt;PRE class="line-numbers  language-none"&gt;&lt;CODE&gt;MACHINE ??= 'imx6ulevk'
DISTRO ?= 'fsl-imx-fb'
PACKAGE_CLASSES ?= "package_rpm"
USER_CLASSES ?= "buildstats image-mklibs image-prelink"
PATCHRESOLVE = "noop"
BB_DISKMON_DIRS ??= "\
    STOPTASKS,${TMPDIR},1G,100K \
    STOPTASKS,${DL_DIR},1G,100K \
    STOPTASKS,${SSTATE_DIR},1G,100K \
    STOPTASKS,/tmp,100M,100K \
    ABORT,${TMPDIR},100M,1K \
    ABORT,${DL_DIR},100M,1K \
    ABORT,${SSTATE_DIR},100M,1K \
    ABORT,/tmp,10M,1K"
PACKAGECONFIG_append_pn-qemu-native = " sdl"
PACKAGECONFIG_append_pn-nativesdk-qemu = " sdl"
CONF_VERSION = "1"

DL_DIR ?= "/home/nxa15297/mydata/aosp/YoctoDN-4.9/downloads"
ACCEPT_FSL_EULA = "1"

BOOT_SPACE = "65536"
IMAGE_OVERHEAD_FACTOR = "1.5"

CORE_IMAGE_EXTRA_INSTALL += " cryptsetup cryptodev-module cryptodev-tests openssh dhcp-client dhcp-server connman"
TOOLCHAIN_HOST_TASK_append = " nativesdk-python nativesdk-python-pycrypto"

IMAGE_INSTALL_append = " sudo"

INHERIT += " extrausers"
EXTRA_USERS_PARAMS = "\
 usermod -P 1876*18 root;\
 useradd -P 2015*08 user1;\
 usermod -a -G sudo user1;\
 "‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;refer to the document&lt;/P&gt;
&lt;P&gt;"&lt;A href="https://community.nxp.com/t5/iMX-and-Vybrid-Support/i-MX6UL-Yocto-Rootfs-how-to-add-user-and-enable-password-control/ta-p/1112652" target="_blank"&gt;https://community.nxp.com/t5/iMX-and-Vybrid-Support/i-MX6UL-Yocto-Rootfs-how-to-add-user-and-enable-password-control/ta-p/1112652&lt;/A&gt;"&lt;/P&gt;
&lt;P&gt;if you couldn't access it, pls refer to:&lt;/P&gt;
&lt;P&gt;To set up proper sudo access for use1, bootup the system and login as root using the above root password. Then using visudo to modify the following line as:&lt;/P&gt;
&lt;PRE class="line-numbers  language-none"&gt;&lt;CODE&gt;## Uncomment to allow members of group sudo to execute any command                   
%sudo  ALL=(ALL) NOPASSWD: ALL ‍‍‍‍&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 13 Jan 2023 04:22:18 GMT</pubDate>
    <dc:creator>joanxie</dc:creator>
    <dc:date>2023-01-13T04:22:18Z</dc:date>
    <item>
      <title>Not able to login as root user with the RFS generated</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Not-able-to-login-as-root-user-with-the-RFS-generated/m-p/1579939#M199828</link>
      <description>&lt;P&gt;&lt;SPAN&gt;I am using a imx6 based custom board&amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Made the build system ready using the following guide:&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://www.nxp.com/docs/en/user-guide/IMX_YOCTO_PROJECT_USERS_GUIDE.pdf" target="_blank" rel="nofollow noopener"&gt;https://www.nxp.com/docs/en/user-guide/IMX_YOCTO_PROJECT_USERS_GUIDE.pdf&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;After cloning the yocto source, initialized the build with: DISTRO=fsl-imx-fb MACHINE=imx6dlsabresd source imx-setup-release.sh -b build_imx&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Then started the build using: bitbake -k core-image-minimal.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The core-image-minimal-xxxx-xxx.tar is generated.&amp;nbsp; But when the board is booted with this RFS image, it did not accept any password for the root user.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I checked the local.conf. It has:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;EXTRA_IMAGE_FEATURES ?= "debug-tweaks"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Yet it did not accept a blank password or any other password.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I had a look at /etc/shadow file.&amp;nbsp; The root user's password field is empty.&amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I tried to change the password manually in /etc/shadow file, but it did not work out.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;DIV&gt;Added the following line in local.conf&lt;/DIV&gt;&lt;DIV&gt;INHERIT += "extrausers"&lt;/DIV&gt;&lt;DIV&gt;EXTRA_USERS_PARAMS = "usermod -p '\$6\$rYOC7GCfUdPrKZdt\$GbxrFaYxl0Wdk9ZyuR/HarDrChctvbHQqdmdtGS.dxCq0FUxLVdxgvdBCoofs4NLcc/0GZ3pbMcrNeT3KwCFk/' root;"&lt;/DIV&gt;&lt;DIV&gt;I can see that when i add this line the /etc/shadow file is updated with the password hash.&amp;nbsp; But that too did not work.&lt;/DIV&gt;&lt;P&gt;&lt;BR /&gt;&lt;SPAN&gt;Can any one point out what should i do to fix the login issue.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Jan 2023 09:48:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Not-able-to-login-as-root-user-with-the-RFS-generated/m-p/1579939#M199828</guid>
      <dc:creator>vivsundar</dc:creator>
      <dc:date>2023-01-10T09:48:36Z</dc:date>
    </item>
    <item>
      <title>Re: Not able to login as root user with the RFS generated</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Not-able-to-login-as-root-user-with-the-RFS-generated/m-p/1579985#M199832</link>
      <description>&lt;P&gt;did you find wic image in your images file? after you flash this image to the board, the password is "root", pls try this, if I misunderstand your question, pls tell me&lt;/P&gt;</description>
      <pubDate>Tue, 10 Jan 2023 10:36:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Not-able-to-login-as-root-user-with-the-RFS-generated/m-p/1579985#M199832</guid>
      <dc:creator>joanxie</dc:creator>
      <dc:date>2023-01-10T10:36:50Z</dc:date>
    </item>
    <item>
      <title>Re: Not able to login as root user with the RFS generated</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Not-able-to-login-as-root-user-with-the-RFS-generated/m-p/1580640#M199902</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the reply,&lt;/P&gt;&lt;P&gt;I am booting the board through NFS.&amp;nbsp; So what I did is that I mounted the partition in core-image-minimal-xxxx-xxx.wic through:&lt;/P&gt;&lt;P&gt;1)&amp;nbsp;losetup -o 33554432 /dev/loop1 core-image-minimal-imx6dlsabresd-20230110062552.rootfs.wic&lt;/P&gt;&lt;P&gt;2)&amp;nbsp;mount /dev/loop1 /mnt/&amp;nbsp;&lt;/P&gt;&lt;P&gt;3) copied the contents of the /mnt/ folder to my NFS folder.&amp;nbsp; After booting my board and tried to login I see the "Login incorrect" message for user: root and password: root.&lt;/P&gt;&lt;P&gt;Note: I have changed the default systemd to sysvinit in "meta-imx/meta-sdk/conf/distro/include/fsl-imx-preferred-env.inc"&amp;nbsp; will that cause any problems?&lt;/P&gt;</description>
      <pubDate>Wed, 11 Jan 2023 09:27:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Not-able-to-login-as-root-user-with-the-RFS-generated/m-p/1580640#M199902</guid>
      <dc:creator>vivsundar</dc:creator>
      <dc:date>2023-01-11T09:27:19Z</dc:date>
    </item>
    <item>
      <title>Re: Not able to login as root user with the RFS generated</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Not-able-to-login-as-root-user-with-the-RFS-generated/m-p/1582140#M200043</link>
      <description>&lt;P&gt;1) refer to the link &lt;A href="https://docs.yoctoproject.org/ref-manual/classes.html#extrausers-bbclass" target="_blank"&gt;https://docs.yoctoproject.org/ref-manual/classes.html#extrausers-bbclass&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;2)remove debug-weaks in the local.conf&lt;/P&gt;
&lt;P&gt;This is a reference local.conf change; where the debug-tweaks has been deleted and line 30-35 showing how to set root password and add user named as user1; which has sudo capability.&lt;/P&gt;
&lt;PRE class="line-numbers  language-none"&gt;&lt;CODE&gt;MACHINE ??= 'imx6ulevk'
DISTRO ?= 'fsl-imx-fb'
PACKAGE_CLASSES ?= "package_rpm"
USER_CLASSES ?= "buildstats image-mklibs image-prelink"
PATCHRESOLVE = "noop"
BB_DISKMON_DIRS ??= "\
    STOPTASKS,${TMPDIR},1G,100K \
    STOPTASKS,${DL_DIR},1G,100K \
    STOPTASKS,${SSTATE_DIR},1G,100K \
    STOPTASKS,/tmp,100M,100K \
    ABORT,${TMPDIR},100M,1K \
    ABORT,${DL_DIR},100M,1K \
    ABORT,${SSTATE_DIR},100M,1K \
    ABORT,/tmp,10M,1K"
PACKAGECONFIG_append_pn-qemu-native = " sdl"
PACKAGECONFIG_append_pn-nativesdk-qemu = " sdl"
CONF_VERSION = "1"

DL_DIR ?= "/home/nxa15297/mydata/aosp/YoctoDN-4.9/downloads"
ACCEPT_FSL_EULA = "1"

BOOT_SPACE = "65536"
IMAGE_OVERHEAD_FACTOR = "1.5"

CORE_IMAGE_EXTRA_INSTALL += " cryptsetup cryptodev-module cryptodev-tests openssh dhcp-client dhcp-server connman"
TOOLCHAIN_HOST_TASK_append = " nativesdk-python nativesdk-python-pycrypto"

IMAGE_INSTALL_append = " sudo"

INHERIT += " extrausers"
EXTRA_USERS_PARAMS = "\
 usermod -P 1876*18 root;\
 useradd -P 2015*08 user1;\
 usermod -a -G sudo user1;\
 "‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;refer to the document&lt;/P&gt;
&lt;P&gt;"&lt;A href="https://community.nxp.com/t5/iMX-and-Vybrid-Support/i-MX6UL-Yocto-Rootfs-how-to-add-user-and-enable-password-control/ta-p/1112652" target="_blank"&gt;https://community.nxp.com/t5/iMX-and-Vybrid-Support/i-MX6UL-Yocto-Rootfs-how-to-add-user-and-enable-password-control/ta-p/1112652&lt;/A&gt;"&lt;/P&gt;
&lt;P&gt;if you couldn't access it, pls refer to:&lt;/P&gt;
&lt;P&gt;To set up proper sudo access for use1, bootup the system and login as root using the above root password. Then using visudo to modify the following line as:&lt;/P&gt;
&lt;PRE class="line-numbers  language-none"&gt;&lt;CODE&gt;## Uncomment to allow members of group sudo to execute any command                   
%sudo  ALL=(ALL) NOPASSWD: ALL ‍‍‍‍&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 13 Jan 2023 04:22:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Not-able-to-login-as-root-user-with-the-RFS-generated/m-p/1582140#M200043</guid>
      <dc:creator>joanxie</dc:creator>
      <dc:date>2023-01-13T04:22:18Z</dc:date>
    </item>
    <item>
      <title>Re: Not able to login as root user with the RFS generated</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Not-able-to-login-as-root-user-with-the-RFS-generated/m-p/1589340#M200748</link>
      <description>&lt;P&gt;the root cause of the issue is:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;P&gt;sysvinit version that comes with the RFS image: Sysvinit version 3.01 does not allow root login through NFS boot. But sysvinit version 2.88 works fine with the existing NFS boot settings.&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;So I started working on the nfsboot parameters, and found that two new nfs parameters had to be added:&amp;nbsp;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;no_root_squash,insecure&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image-20230119-044725.png" style="width: 907px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/208677i7E7691601883ACBF/image-size/large?v=v2&amp;amp;px=999" role="button" title="image-20230119-044725.png" alt="image-20230119-044725.png" /&gt;&lt;/span&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;SPAN&gt;The screen shot shows the nfs server side parameters. &lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Sun, 29 Jan 2023 15:46:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Not-able-to-login-as-root-user-with-the-RFS-generated/m-p/1589340#M200748</guid>
      <dc:creator>vivsundar</dc:creator>
      <dc:date>2023-01-29T15:46:44Z</dc:date>
    </item>
  </channel>
</rss>

