From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 11789C10F15 for ; Thu, 25 Apr 2024 18:57:47 +0000 (UTC) Subject: Re: [yocto] issue adding the user with the yocto kirkstone To: "Mahendra Sondagar" , yocto@lists.yoctoproject.org From: "Daniel" X-Originating-Location: Ashburn, Virginia, US (72.21.198.66) X-Originating-Platform: Linux Firefox 125 User-Agent: GROUPS.IO Web Poster MIME-Version: 1.0 Date: Thu, 25 Apr 2024 11:57:38 -0700 References: In-Reply-To: Message-ID: <3353.1714071458038827393@lists.yoctoproject.org> Content-Type: multipart/alternative; boundary="3ddTGnKVvAeZdVErrjbV" List-Id: X-Webhook-Received: from li982-79.members.linode.com [45.33.32.79] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Thu, 25 Apr 2024 18:57:47 -0000 X-Groupsio-URL: https://lists.yoctoproject.org/g/yocto/message/63003 --3ddTGnKVvAeZdVErrjbV Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Hi, Mahendra Try using `useradd` instead of `usermod` for creating your user with the EX= TRA_USER_PARAMS feature. Something like this: EXTRA_USERS_PARAMS : append =3D "\ useradd -m -s /bin /bash -P 'mahi' root; \ " --3ddTGnKVvAeZdVErrjbV Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: quoted-printable

Hi, Mahendra

Try using `useradd` instead of `usermod` for creating your user with the= EXTRA_USER_PARAMS feature. Something like this:

 

EXTRA_USERS_PARAMS:append<= span style=3D"color: #ffffff;"> =3D<= /span> "\
useradd -m -s /bin/bash -P 'mahi' = root; \
"

 

--3ddTGnKVvAeZdVErrjbV--