<?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>6579</bug_id>
          
          <creation_ts>2014-07-25 20:59:23 +0000</creation_ts>
          <short_desc>Default fs-perms.txt has odd settings for /home and other dirs</short_desc>
          <delta_ts>2014-07-29 08:59:48 +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>configuration</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>Undecided</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Paul Gortmaker">paulg</reporter>
          <assigned_to name="Richard Purdie">richard.purdie</assigned_to>
          
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>No (bug/feature does not impact docs)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>44729</commentid>
    <comment_count>0</comment_count>
    <who name="Paul Gortmaker">paulg</who>
    <bug_when>2014-07-25 20:59:23 +0000</bug_when>
    <thetext>in meta/files/fs-perms.txt we find this:

# Set 2775
/home                           02755   root    root    false - - -
${prefix}/src                   02755   root    root    false - - -
${localstatedir}/local          02755   root    root    false - - -

leading to /home &amp; the others being drwxr-sr-x instead of the expected drwxr-xr-x that every other linux distro has.

Mark Hatle did the historical research into why this was so, and found that it originally was via debian import, and then it morphed over time:

&lt;fray&gt; +#   chown -R root:root ${D}
&lt;fray&gt; +#   cd ${D} &amp;&amp; chown root:src     usr/src
&lt;fray&gt; +#   cd ${D} &amp;&amp; chown root:staff   var/local
&lt;fray&gt; +#   cd ${D} &amp;&amp; chown root:staff   home
&lt;fray&gt; +    cd ${D} &amp;&amp; chmod 755  `find . -type d`
&lt;fray&gt; +    cd ${D} &amp;&amp; chmod 1777 `cat ${S}/debian/1777-dirs`
&lt;fray&gt; +    cd ${D} &amp;&amp; chmod 2775 `cat ${S}/debian/2775-dirs`
&lt;fray&gt; that was the original code
&lt;fray&gt; so THAT is why they&apos;re 2775..
fray&gt; they were originall &apos;src&apos; and &apos;staff&apos;.. which has gotten lost sometime in the last 10 years

&lt;fray&gt; AND the origin:
&lt;fray&gt; commit b45c9ed40bb4f893f99127a21776aef3ae888ad7
&lt;fray&gt; Author: Chris Larson &lt;clarson@kergoth.com&gt;
&lt;fray&gt; Date:   Tue Sep 30 16:30:41 2003 +0000
&lt;fray&gt;     Add base-files 3.0.10 (from debian).
&lt;fray&gt; thats where the brain damaged started ... Debian in 2003..
&lt;fray&gt; then the bug (where it switched to root:root) occured in 1295a2da65762726681b781337970b44b520f0d3</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>44734</commentid>
    <comment_count>1</comment_count>
    <who name="Paul Gortmaker">paulg</who>
    <bug_when>2014-07-25 21:40:31 +0000</bug_when>
    <thetext>base_files should also have these guys move to dirs775:

dirs2775 = &quot;/home ${prefix}/src ${localstatedir}/local&quot;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>44798</commentid>
    <comment_count>2</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2014-07-29 08:59:48 +0000</bug_when>
    <thetext>Resolved in http://git.yoctoproject.org/cgit.cgi/poky/commit/?id=c6a57f7f4c8502d8d401db4d872738f680cfc637 and the preceding two commits, thanks Paul!</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>