($INBOX_DIR/description missing)
 help / color / mirror / Atom feed
From: vivsundar@gmail.com
To: meta-freescale@lists.yoctoproject.org
Subject: Cannot reset root password with yocto build #kirkstone
Date: Mon, 02 Jan 2023 00:48:00 -0800	[thread overview]
Message-ID: <x7zG.1672649280154006543.s1jX@lists.yoctoproject.org> (raw)

[-- Attachment #1: Type: text/plain, Size: 1140 bytes --]

Hi all,

I am usnig the imx6 freescale processor.
I am trying to build rootFS with yocto build "5.15-kirkstone" branch
I use Sysvinit for my bootup sequence.
I cannot reset the root password. I have tried the following things:

Added the following line in local.conf
INHERIT += "extrausers"
EXTRA_USERS_PARAMS = "usermod -p '\$6\$rYOC7GCfUdPrKZdt\$GbxrFaYxl0Wdk9ZyuR/HarDrChctvbHQqdmdtGS.dxCq0FUxLVdxgvdBCoofs4NLcc/0GZ3pbMcrNeT3KwCFk/' root;"
I can see that when i add this line the /etc/shadow file is updated with the password hash

Manually changed the /etc/shadow file with the hash
root:$6$rYOC7GCfUdPrKZdt$GbxrFaYxl0Wdk9ZyuR/HarDrChctvbHQqdmdtGS.dxCq0FUxLVdxgvdBCoofs4NLcc/0GZ3pbMcrNeT3KwCFk/:15069:0:99999:7:::

But yet no use.

I tried to add
IMAGE_FEATURES = " debug-tweaks"
EXTRA_IMAGE_FEATURES = " empty-root-password"
EXTRA_IMAGE_FEATURES += " ssh-server-dropbear"
EXTRA_IMAGE_FEATURES += " allow-empty-password"
EXTRA_IMAGE_FEATURES += " allow-root-login"

but yet no use.

I am using sysvinit V3.01 in the build.

Can some one point what file should i change in order to change the root password?

[-- Attachment #2: Type: text/html, Size: 10741 bytes --]

             reply	other threads:[~2023-01-02  8:48 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-01-02  8:48 vivsundar [this message]
2023-01-02 23:15 ` [meta-freescale] Cannot reset root password with yocto build #kirkstone Otavio Salvador
2023-01-31  3:36   ` vivsundar

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=x7zG.1672649280154006543.s1jX@lists.yoctoproject.org \
    --to=vivsundar@gmail.com \
    --cc=meta-freescale@lists.yoctoproject.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).