All of lore.kernel.org
 help / color / mirror / Atom feed
From: bugzilla@busybox.net
To: buildroot@uclibc.org
Subject: [Buildroot] [Bug 15506] New: Failed to login to system with root and its password.
Date: Thu, 30 Mar 2023 01:41:41 +0000	[thread overview]
Message-ID: <bug-15506-163@https.bugs.busybox.net/> (raw)

https://bugs.busybox.net/show_bug.cgi?id=15506

            Bug ID: 15506
           Summary: Failed to login to system with root and its password.
           Product: buildroot
           Version: 2020.02.1
          Hardware: All
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P5
         Component: Other
          Assignee: unassigned@buildroot.uclibc.org
          Reporter: simitel@163.com
                CC: buildroot@uclibc.org
  Target Milestone: ---

I am working on an emebeded system, where busybox is used as init and shell. 

The rootfs is built on X86 host with buildroot (2020.02.1). The buildroot is
configured as follows,
BR2_TARGET_GENERIC_PASSWD_SHA256=y
# BR2_TARGET_GENERIC_PASSWD_SHA512 is not set
BR2_TARGET_GENERIC_PASSWD_METHOD="sha-256"
BR2_INIT_BUSYBOX=y
......
......
BR2_TARGET_ENABLE_ROOT_LOGIN=y
BR2_TARGET_GENERIC_ROOT_PASSWD="000000"
BR2_SYSTEM_BIN_SH_BUSYBOX=y

During the building of rootfs on the host, it shows following logs,
"/usr/bin/sed -i -e
s,^root:[^:]*:,root:"`/home/t/develop/test/project/out/product/linux_nand_5.10-eng/obj/buildroot-intermediate/host/bin/mkpasswd
-m "sha-256" "000000"`":,
/home/t/develop/test/project/out/product/linux_nand_5.10-eng/obj/buildroot-intermediate/target/etc/shadow
"

When the image and rootfs are deployed into the target board and boot up. I
cannot login to system with 'root' and '000000' from serial console.

Then in adb shell, I regenerated the password of root with `echo root:000000 |
chpasswd -c SHA256`, I can login to the system with 'root' and '000000' from
serial console. 

I don't know if this is a bug and how to make login with password.

Thanks,

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

             reply	other threads:[~2023-03-30  1:41 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-03-30  1:41 bugzilla [this message]
2023-03-30  1:57 ` [Buildroot] [Bug 15506] Failed to login to system with root and its password bugzilla
2023-03-30  9:30 ` bugzilla
2023-03-30  9:31 ` bugzilla
2024-06-15 15:07 ` bugzilla

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bug-15506-163@https.bugs.busybox.net/ \
    --to=bugzilla@busybox.net \
    --cc=buildroot@uclibc.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.