How to change root password on Yocto dora bitbake system?

I am working on a Dora (Poky 1.2) Yocto branch and should only work on this branch.

I need to change the empty root password to a different value to prevent a security hole during development.

How to set root password?

I would like to use the local.conf file.

The method described here does not work: How to set the root password on a Yocto / Poky image?

0
source share
2 answers

Add the line below to build/conf/local.confor go to meta-dirand add the following line to accept the git patch.

INHERIT += "extrausers"
EXTRA_USERS_PARAMS = "useradd admin; \
                      usermod -p $(openssl passwd abc123) admin; \
                      usermod -p $(openssl passwd knockknock) root; \
                     "
+1
source

, poky -P usermod local.conf. (, , Linux kernel 3.0)

root, : ( )

poky/build/conf/local.conf :

INHERIT += "extrausers"
EXTRA_USERS_PARAMS = "useradd admin; \
                      usermod -p $(openssl passwd abc123) admin; \
                      usermod -p $(openssl passwd knockknock) root; \
                     "

- "abc123", root - "knockknock".

openssl poky/meta/recipes-connectivity/openssl/openssl_1.0.1p.bb

0

All Articles