setting password and username for build image

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

setting password and username for build image

5,624 Views
sachusanal
Contributor III

Hi Sir ,

I am using yocto Jethro build for mx6qsabresd board. I need to set one username and password for the image .

actually my login prompt is root like that

I need to set on my own password and username for my build image.

Regards

Sachu

Labels (1)
0 Kudos
3 Replies

3,154 Views
gusarambula
NXP TechSupport
NXP TechSupport

Hello Sachu Sanal,

There is some help on this on the Yocto Wiki (link below)

https://wiki.yoctoproject.org/wiki/FAQ:How_do_I_set_or_change_the_root_password

You may change the root password using the following variables on the configuration file:

inherit extrausers

EXTRA_USERS_PARAMS = "usermod -P <PASSWORD> root;"

Or add a new user

EXTRA_USERS_PARAMS = "useradd -P <PASSWORD> <USERNAME>;"

Regards,

3,154 Views
sachusanal
Contributor III

Hi ,


Thanks for your Reply ...

but I have one doubt  ,I added the below mentioned settings in my image.bb file what I am facing means I added root password itworking for me, then I added another user its working ,but afterwords  of other useradd the root user wi9ll not ask anty password?

what is the issue?let me know

Regards

Sachu

0 Kudos

3,154 Views
sandratrujillog
Contributor III

In your local.conf file:

Comment the line corresponding to debug-tweaks adding ‘#’

#EXTRA_IMAGE_FEATURES = "debug-tweaks"

0 Kudos