Hi Livius,
On 6/3/22 23:45, Livius wrote:
Finaly, i found the problem and i could solve it. SHA-256 is too weak to make a
password hash, this is why on first login we need to change password always.
Please fix it in Yocto manual (
https://urldefense.proofpoint.com/v2/url?u=https-3A__docs.yoctoproject.org_singleindex.html-23term-2DEXTRA-5FUSERS-5FPARAMS&d=DwIFaQ&c=_sEr5x9kUWhuk4_nFwjJtA&r=LYjLexDn7rXIzVmkNPvw5ymA1XTSqHGq8yBP6m6qZZ4njZguQhZhkI_-172IIy1t&m=0uV8RQppxWsB3H_ISKM3TtcskB-MIQyiSP7s0BMWyk5zDyOJ2v-Hmu1z51A1H1Td&s=bI64ytMKJ6c4SoARAXvTxdYfYoS61-EPSeqxAbok8CY&e=
). When i set it to generate sha512crypt hash it works fine, there are no any change request on first
login.
With poky commit 2d1838b7bc ("python3-picobuild: upgrade to 0.2") master
branch and the following diff:
diff --git a/meta/recipes-core/images/core-image-minimal.bb
b/meta/recipes-core/images/core-image-minimal.bb
index 84343adcd8..f21f467bfd 100644
--- a/meta/recipes-core/images/core-image-minimal.bb
+++ b/meta/recipes-core/images/core-image-minimal.bb
@@ -10,3 +10,8 @@ inherit core-image
IMAGE_ROOTFS_SIZE ?= "8192"
IMAGE_ROOTFS_EXTRA_SPACE:append =
"${@bb.utils.contains("DISTRO_FEATURES", "systemd", " + 4096", "", d)}"
+
+inherit extrausers
+
+PASSWD =
"\$5\$AEz8bdRlSRIc3Ejb\$g3M6ww5SouP5wwkjw126ulgdxNMlLfx5b.hbCRpZMM4"
+EXTRA_USERS_PARAMS = "usermod -p '${PASSWD}' root; "
with brand new build directory created with source oe-init-build-env
../build
Then running the qemu image with:
runqemu noslirp nographic
I can successfully login and do not get any request for a password
change, even though the password I created was generated as explained in
the docs.
Can you give us more info so we can reproduce this and amend the
documentation or fix the code for the usecase you found required sha512?
Thanks,
Quentin
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#168257):
https://lists.openembedded.org/g/openembedded-core/message/168257
Mute This Topic: https://lists.openembedded.org/mt/91308780/21656
Group Owner: openembedded-core+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-