changing default root password

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

changing default root password

Jump to solution
6,902 Views
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 Kudos
Reply
1 Solution
5,230 Views
joanxie
NXP TechSupport
NXP TechSupport
0 Kudos
Reply
2 Replies
5,231 Views
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 Kudos
Reply
5,230 Views
davidzhou
Contributor V

Hi Joan,

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

Thank you.

David

0 Kudos
Reply