<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>14605</bug_id>
          
          <creation_ts>2021-10-15 21:23:38 +0000</creation_ts>
          <short_desc>usermod -P is not valid anymore and causes build failure</short_desc>
          <delta_ts>2022-02-14 11:42:36 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>7</classification_id>
          <classification>Build System, Metadata &amp; Runtime</classification>
          <product>OE-Core</product>
          <component>core</component>
          <version>unspecified</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium+</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>Future</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Vivien Didelot">vivien.didelot</reporter>
          <assigned_to name="Daiane">angolini</assigned_to>
          <cc>angolini</cc>
    
    <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>randy.macleod</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>Yes (doc changes required)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>91769</commentid>
    <comment_count>0</comment_count>
    <who name="Vivien Didelot">vivien.didelot</who>
    <bug_when>2021-10-15 21:23:38 +0000</bug_when>
    <thetext>Using usermod -P in EXTRA_USERS_PARAMS as stated in the documentation [1] causes a &quot;usermod: prefix must be an absolute path&quot; build error.

The -P option was being added by an OE-specific patch to shadow that was dropped when it was last upgraded. Now -P corresponds to the usermod prefix option. Plain password cannot be provided via -P anymore and must be provided via -p with a hashed value computed for example with mkpasswd -m sha512crypt (making sure $ is escaped).

[1] https://docs.yoctoproject.org/singleindex.html#extrausers-bbclass</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>91801</commentid>
    <comment_count>1</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2021-10-21 14:41:39 +0000</bug_when>
    <thetext>Diane will submit a patch for this.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>92061</commentid>
    <comment_count>2</comment_count>
    <who name="Daiane">angolini</who>
    <bug_when>2021-11-23 17:27:42 +0000</bug_when>
    <thetext>https://git.yoctoproject.org/cgit/cgit.cgi/yocto-docs/commit/?id=3f3e5574ac9801ad92940168b61b532e0bd53a80</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>92062</commentid>
    <comment_count>3</comment_count>
    <who name="Daiane">angolini</who>
    <bug_when>2021-11-23 18:16:20 +0000</bug_when>
    <thetext>Since [1] a clear password cannot be set any longer.


[1] http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/meta/recipes-extended/shadow?id=087070bf2156681bd6a5b3bac89f9712545a6768</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>92549</commentid>
    <comment_count>4</comment_count>
    <who name="Daiane">angolini</who>
    <bug_when>2022-02-14 11:42:36 +0000</bug_when>
    <thetext>Closed with
https://github.com/openembedded/openembedded-core/commit/3f9153986e4e6f667b4bbe97613ec0b279665a97</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>