All of lore.kernel.org
 help / color / mirror / Atom feed
* usermod in EXTRA_USERS_PARAMS is broken in master
@ 2021-08-24 14:21 Zoltan Boszormenyi
  2021-08-24 21:21 ` [OE-core] " Peter Kjellerstedt
  0 siblings, 1 reply; 3+ messages in thread
From: Zoltan Boszormenyi @ 2021-08-24 14:21 UTC (permalink / raw)
  To: openembedded-core

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;"

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [OE-core] usermod in EXTRA_USERS_PARAMS is broken in master
  2021-08-24 14:21 usermod in EXTRA_USERS_PARAMS is broken in master Zoltan Boszormenyi
@ 2021-08-24 21:21 ` Peter Kjellerstedt
  2021-08-25  4:22   ` Zoltan Boszormenyi
  0 siblings, 1 reply; 3+ messages in thread
From: Peter Kjellerstedt @ 2021-08-24 21:21 UTC (permalink / raw)
  To: zboszor, openembedded-core

> -----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


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [OE-core] usermod in EXTRA_USERS_PARAMS is broken in master
  2021-08-24 21:21 ` [OE-core] " Peter Kjellerstedt
@ 2021-08-25  4:22   ` Zoltan Boszormenyi
  0 siblings, 0 replies; 3+ messages in thread
From: Zoltan Boszormenyi @ 2021-08-25  4:22 UTC (permalink / raw)
  To: Peter Kjellerstedt, openembedded-core

2021. 08. 24. 23:21 keltezéssel, Peter Kjellerstedt írta:
>> -----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.

Thank you.

> 
>>
>> 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
> 


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-08-25  4:22 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-08-24 14:21 usermod in EXTRA_USERS_PARAMS is broken in master Zoltan Boszormenyi
2021-08-24 21:21 ` [OE-core] " Peter Kjellerstedt
2021-08-25  4:22   ` Zoltan Boszormenyi

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.