All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Peter Kjellerstedt" <peter.kjellerstedt@axis.com>
To: "zboszor@pr.hu" <zboszor@pr.hu>,
	"openembedded-core@lists.openembedded.org"
	<openembedded-core@lists.openembedded.org>
Subject: Re: [OE-core] usermod in EXTRA_USERS_PARAMS is broken in master
Date: Tue, 24 Aug 2021 21:21:08 +0000	[thread overview]
Message-ID: <4143bf5010d947b2b5f896b27cf7e0dd@axis.com> (raw)
In-Reply-To: <eb9225bc-cc13-aca4-b44f-f38c2f83556b@pr.hu>

> -----Original Message-----
> From: openembedded-core@lists.openembedded.org <openembedded-
> core@lists.openembedded.org> On Behalf Of Zoltan Boszormenyi via
> lists.openembedded.org
> Sent: den 24 augusti 2021 16:22
> To: openembedded-core@lists.openembedded.org
> Subject: [OE-core] usermod in EXTRA_USERS_PARAMS is broken in master
> 
> Hi,
> 
> I tried to port my distro layer to Honister and
> attempted to build an OS image.
> 
> I have this in the image recipe:
> 
> EXTRA_USERS_PARAMS += "usermod -P mypassword root; usermod -P mypassword2 myuser;"

The 0002-Allow-for-setting-password-in-clear-text.patch patch has been dropped 
from shadow with the update to 4.9 (see commit 759df739). It previously renamed 
the -P option to -A and added an insecure -P <cleartext password> option.

Replace the use of the -P <cleartext password> option with -p <encrypted password> 
and you should be good to go, also with Hardknott.

> 
> and the error I got was:
> 
> NOTE: my-test-image: Performing usermod with [-R
> /data/yocto/tmp-sicom-glibc/work/genericx86_64-oe-linux/my-test-image/1.0-
> r0/rootfs -P
> mypassword root]
> usermod: prefix must be an absolute path
> ERROR: my-test-image: usermod command did not succeed.
> WARNING:
> /data/yocto/tmp-sicom-glibc/work/genericx86_64-oe-linux/my-test-image/1.0-
> r0/temp/run.set_user_group.2583229:260
> exit 1 from 'exit 1'
> 
> EXTRA_USERS_PARAMS has userdel and useradd commands
> before the last two usermod, all of which succeed.
> 
> I got the same error on both Fedora 33 and Fedora 34 hosts.
> 
> It works with Hardknott.
> 
> Best regards,
> Zoltán Böszörményi

//Peter


  reply	other threads:[~2021-08-24 21:21 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-08-24 14:21 usermod in EXTRA_USERS_PARAMS is broken in master Zoltan Boszormenyi
2021-08-24 21:21 ` Peter Kjellerstedt [this message]
2021-08-25  4:22   ` [OE-core] " Zoltan Boszormenyi

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4143bf5010d947b2b5f896b27cf7e0dd@axis.com \
    --to=peter.kjellerstedt@axis.com \
    --cc=openembedded-core@lists.openembedded.org \
    --cc=zboszor@pr.hu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.