changing default root password

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

changing default root password

跳至解决方案
6,909 次查看
davidzhou
Contributor V

I have imx6ul dev board 

I tried to add a password for yocto login. 
steps I did:
create an MD5 password
Copied the generated hash output string and replace the MD5_ROOT_PASSWD with it.
in the local.conf file, removed debug-tweaks extra_image_features
rebuild the images.

after installed the images, at prompt
  login:
type root, password: is not prompted

Then I added
useradd - p 'password hash string' admin
after rebuild and install the images, at prompt
login: admin
Password:

it shows the password, but returns login incorrect

What did I miss?

Thank you,

David

0 项奖励
回复
1 解答
5,237 次查看
joanxie
NXP TechSupport
NXP TechSupport
0 项奖励
回复
2 回复数
5,238 次查看
joanxie
NXP TechSupport
NXP TechSupport

pls refer to the link as below, hope helpful for you

FAQ:How do I set or change the root password - Yocto Project 

0 项奖励
回复
5,237 次查看
davidzhou
Contributor V

Hi Joan,

Also added into poky/meta/classes/extrausers.bbclass

Thank you.

David

0 项奖励
回复