# Problem with useradd command

**URL:** <https://forum.legato.io/t/problem-with-useradd-command/2867>\
**Category:** Legato Linux distribution (Yocto project)\
**Created:** [December 15, 2017, 2:21pm UTC](https://forum.legato.io/t/problem-with-useradd-command/2867 "2017-12-15T14:21:15Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![AlBo](https://avatars.discourse-cdn.com/v4/letter/a/a87d85/32.png) [@AlBo](https://forum.legato.io/u/AlBo)\
**Post date:** [December 15, 2017, 2:21pm UTC](https://forum.legato.io/t/problem-with-useradd-command/2867/1 "2017-12-15T14:21:15Z")

</div>

Hi,  
I have the following rules in my `bb`file:

```
inherit useradd

USERADD_PACKAGES = "${PN}"
GROUPADD_PACKAGES = "${PN}"
GROUPADD_PARAM_${PN} = "configuration" 
USERADD_PARAM_${PN} = "-d /tmp -G configuration blackbox; -m -d /tmp -s /usr/sbin/generate_config.sh -G configuration -p wtmoOHy.mTsUk technicien"

```

And I get the following warnings:

```
| DEBUG: Executing shell function useradd_sysroot
| Running groupadd commands...
| NOTE: Performing groupadd with [--root /home/me/yocto/build_bin/tmp/sysroots/swi-mdm9x15 configuration] and 10 times of retry
| WARNING: group configuration already exists, not re-creating it
| Running useradd commands...
| NOTE: Performing useradd with [--root /home/me/yocto/build_bin/tmp/sysroots/swi-mdm9x15 -d /tmp -G configuration blackbox] and 10 times of retry
| WARNING: user blackbox already exists, not re-creating it
| NOTE: Performing useradd with [--root /home/me/yocto/build_bin/tmp/sysroots/swi-mdm9x15 -m -d /tmp -s /usr/sbin/generate_config.sh -G configuration -p wtm$$$y.mTsUk technicien] and 10 times of retry
| WARNING: user technicien already exists, not re-creating it
| DEBUG: Shell function useradd_sysroot finished

```

Could you please tell me why?

Regards,  
Alain

---

<div class="post-metadata">

**Author:** ![Vasantha\_lax](https://avatars.discourse-cdn.com/v4/letter/v/5f9b8f/32.png) [@Vasantha\_lax](https://forum.legato.io/u/Vasantha_lax)\
**Post date:** [December 16, 2017, 9:44am UTC](https://forum.legato.io/t/problem-with-useradd-command/2867/2 "2017-12-16T09:44:27Z")

</div>

`You can check the patch introduced below to understand the warning. https://lists.yoctoproject.org/pipermail/meta-mentor/2013-June/000075.html `

---

<div class="post-metadata">

**Author:** ![AlBo](https://avatars.discourse-cdn.com/v4/letter/a/a87d85/32.png) [@AlBo](https://forum.legato.io/u/AlBo)\
**Post date:** [December 20, 2017, 9:19am UTC](https://forum.legato.io/t/problem-with-useradd-command/2867/3 "2017-12-20T09:19:48Z")

</div>

> [@Vasantha\_lax](#):
>
> [[meta-mentor] [PATCH] useradd.bbclass: Add members to a group](https://lists.yoctoproject.org/pipermail/meta-mentor/2013-June/000075.html)

Well ok, but I don’t understand here why it’s considered addind existing users to existing groups.  
I don’t think the system already knows `blackbox` or `technicien` nor `configuration` group.
