Hello,

I am trying to generate a password for root and add a new user. Here is the 
code in the image recipe:

IMAGE_FEATURES:remove = "debug-tweaks"
INHERIT += "extrausers"
EXTRA_USERS_PARAMS += "usermod -P root root; useradd -P 2023 crane"

When using "inherit extrausers", there is an error of "usermod command did not 
succeed."

When checking the parameter, the result is:
EXTRA_USERS_PARAMS=" usermod -P root root; useradd -P 2023 crane; "

The image does requires a password for root, but doesn't generate anything in 
/etc/shadow and doesn't add new user in /etc/shadow as well.

I am wondering what might be missing. Can anyone give me any clue?

Thanks!
Crane
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#60846): https://lists.yoctoproject.org/g/yocto/message/60846
Mute This Topic: https://lists.yoctoproject.org/mt/100887124/21656
Group Owner: yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to