[yocto] How to add user with nologin shell

Michel D'HOOGE michel.dhooge at free.fr
Thu Nov 24 04:56:25 PST 2016

> Still same error even if I used -U option.
> I tried even groupadd but still I get below error.

Can you try this:
EXTRA_USERS_PARAMS = "useradd -r -s /sbin/nologin user1;"

According to my man page:
  By default, a group will also be created for the new user
  <username> must be last
  -r also implies -M


More information about the yocto mailing list