Add a password to dey2.2-r3 failed

Hi,

I have imx6ul dev board and dey2.2-r3 yocto

I tried to add a password for yocto login. From the DIGI’s link
https://www.digi.com/resources/documentation/digidocs/90002284/task/eclipse_ide/new/t_change_root_pw.htm?TocPath=Digi%20Embedded%20Yocto|System%20development|Customize%20the%20root%20file%20system|Manage%20user%20accounts|_____2#Set2

explained how to change root password. I found the steps either not working or I missed something.

Steps I did:

  1. create an MD5 password
  2. Copied the generated hash output string and replace the MD5_ROOT_PASSWD with it.
  3. in the local.conf file, removed debug-tweaks extra_image_features
  4. rebuild the images.

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

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

it shows the password, but returns login incorrect

What did I miss?

Thank you,

David

inherit extrausers
EXTRA_USERS_PARAMS = “usermod -P 1876*18 admin;”

works for me