Creating user with Yocto works only partially

358 Views Asked by At

I am trying to create a user to my system created using Yocto.

I have the following line in my recipe for my custom image:

inherit extrausers
EXTRA_USERS_PARAMS = " useradd -p 'myuser' -d /home/myuser --create-home myuser; "

The result is that I can't login as myuser, but I can change to myuser using su. What am I doing wrong?

1

There are 1 best solutions below

3
Flewz On

useradd requires some manual work. Write up done on this post.

Use adduser instead.