<?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>5612</bug_id>
          
          <creation_ts>2013-11-29 16:55:10 +0000</creation_ts>
          <short_desc>If no passwd/group files exist in sysroot, users/groups are picked up from /etc</short_desc>
          <delta_ts>2014-04-18 07:54:06 +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>1.5</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>6124</dup_id>
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>1.6</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Peter Kjellerstedt">peter.kjellerstedt</reporter>
          <assigned_to name="Saul Wold">sgw</assigned_to>
          <cc>liezhi.yang</cc>
    
    <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>Qi.Chen</cc>
    
    <cc>seebs</cc>
    
    <cc>tomw</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>Don&apos;t know</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>39150</commentid>
    <comment_count>0</comment_count>
    <who name="Peter Kjellerstedt">peter.kjellerstedt</who>
    <bug_when>2013-11-29 16:55:10 +0000</bug_when>
    <thetext>[ To simplify the description I will only use groups as an example, but everything applies to users as well. ]

If there is no group file in the etc directory of the sysroot, /etc/group will be used instead. This means that one can succeed in building a recipe where a group is used that exists in /etc/group if no group file is in the sysroot, but the recipe will fail to build later when base-passwd has been installed and the group file in the sysroot does not contain the used group.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>39389</commentid>
    <comment_count>1</comment_count>
    <who name="Chen Qi">Qi.Chen</who>
    <bug_when>2013-12-13 08:00:03 +0000</bug_when>
    <thetext>How about making such recipe dependent on base-passwd?

//Chen Qi</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>39458</commentid>
    <comment_count>2</comment_count>
    <who name="Saul Wold">sgw</who>
    <bug_when>2013-12-17 19:36:14 +0000</bug_when>
    <thetext>Do you use the useradd.bbclass to modify the user or group files?  It has a 
dependency on base-passwd as Chen Qi suggests.  How are you modifing the group 
file?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>39459</commentid>
    <comment_count>3</comment_count>
    <who name="Peter Kjellerstedt">peter.kjellerstedt</who>
    <bug_when>2013-12-18 00:16:42 +0000</bug_when>
    <thetext>Well, for recipes that need to add users and/or groups in addition to what base-passwd provides, useradd.bbclass is appropriate. However, I am talking about recipes that only use the users and groups provided by base-passwd. In Poky, there are only two recipes that depend on base-passwd: sysvinit and shadow-sysroot. Any other recipe that installs files (and that should be just about every single recipe) relies on the fact that the users and groups in /etc are similar enough to the ones provided by bass-passwd, most notably that root exists.

That said, this may be more of a theoretical problem as the likelihood of having a host system without a user called &quot;root&quot; is pretty slim...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>39842</commentid>
    <comment_count>4</comment_count>
    <who name="Seebs">seebs</who>
    <bug_when>2014-01-15 19:22:57 +0000</bug_when>
    <thetext>It would make sense to change that behavior in pseudo, I would be inclined to have pseudo use a small built-in passwd/group set instead of the host system&apos;s in that case.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>42513</commentid>
    <comment_count>5</comment_count>
    <who name="Peter Kjellerstedt">peter.kjellerstedt</who>
    <bug_when>2014-04-10 11:32:18 +0000</bug_when>
    <thetext>Not sure what more info I am expected to provide...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>42730</commentid>
    <comment_count>6</comment_count>
    <who name="Robert Yang">liezhi.yang</who>
    <bug_when>2014-04-18 07:54:06 +0000</bug_when>
    <thetext>Duplicated to 6124.

*** This bug has been marked as a duplicate of bug 6124 ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>