setting password and username for build image

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

setting password and username for build image

7,826 次查看
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

标签 (1)
0 项奖励
回复
3 回复数

5,356 次查看
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,

5,356 次查看
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 项奖励
回复

5,356 次查看
sandratrujillog
Contributor III

In your local.conf file:

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

#EXTRA_IMAGE_FEATURES = "debug-tweaks"

0 项奖励
回复