This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Linux/AM3358: setting default users/passwords in Yocto build

Part Number: AM3358

Tool/software: Linux

I've been trying to figure out how to set the default root password and add users in a customised SDK build. 

Following documentation which suggests: 

1. edit /build/conf/local.conf

2. comment out EXTRA_IMAGE_FEATURES = "debug-tweaks" 

3. add the following lines

INHERIT += "extrausers"

EXTRA_USERS_PARAMS = "useradd -P userpwd newuser; usermod -P rootpwd root;"

This configuration seems to build and install correctly, but the passwords are not being set (or being set incorrectly): effectively locking me out of the target system! 

I've also tried another suggestion of: 

EXTRA_USERS_PARAMS = "useradd -p $(openssl passwd userpwd) newuser; usermod -p $(openssl passwd rootpwd) root;"

but this doesn't fair any better. 

Any ideas what could be causing the problem or ways to achieve this?

Mat

  • Mat,

    I'm looking into your query and should have some feedback in the next day or so.

    Thank you.
  • Mat,

    We have only recently started looking at adding multiple users and the current SDKs only support root by default. The path we plan to use is to run adduser on a live system. However, we don't know of anything that is being done with the SDK that would prevent any standard Yocto methods from working. Since we don't have any experience with this and standard Yocto methods should apply, I would recommend you consult the Yocto community where you'll probably be able to find more help.

    Thanks for your post.