<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question Inherit group ownership from user (not directory)? in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Inherit-group-ownership-from-user-not-directory/m-p/94223#M7526</link>
    <description>&lt;P&gt;It it possible for new files/dirs to &lt;STRONG&gt;inherit group ownership from the user&lt;/STRONG&gt; instead of the parent directory?&lt;/P&gt;&lt;P&gt;For reference this is how default group permissions are handled:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;"When a file or directory is created, its owner is the user identity of the client process, &lt;/EM&gt;&lt;STRONG&gt;&lt;EM&gt;and its group is the group of the parent directory (the BSD rule).”&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://hadoop.apache.org/docs/current/hadoop-project-dist/hadoop-hdfs/HdfsPermissionsGuide.html"&gt;http://hadoop.apache.org/docs/current/hadoop-project-dist/hadoop-hdfs/HdfsPermissionsGuide.h&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 25 Sep 2015 06:28:43 GMT</pubDate>
    <dc:creator>gvetticaden1</dc:creator>
    <dc:date>2015-09-25T06:28:43Z</dc:date>
    <item>
      <title>Inherit group ownership from user (not directory)?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Inherit-group-ownership-from-user-not-directory/m-p/94223#M7526</link>
      <description>&lt;P&gt;It it possible for new files/dirs to &lt;STRONG&gt;inherit group ownership from the user&lt;/STRONG&gt; instead of the parent directory?&lt;/P&gt;&lt;P&gt;For reference this is how default group permissions are handled:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;"When a file or directory is created, its owner is the user identity of the client process, &lt;/EM&gt;&lt;STRONG&gt;&lt;EM&gt;and its group is the group of the parent directory (the BSD rule).”&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://hadoop.apache.org/docs/current/hadoop-project-dist/hadoop-hdfs/HdfsPermissionsGuide.html"&gt;http://hadoop.apache.org/docs/current/hadoop-project-dist/hadoop-hdfs/HdfsPermissionsGuide.h&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 25 Sep 2015 06:28:43 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Inherit-group-ownership-from-user-not-directory/m-p/94223#M7526</guid>
      <dc:creator>gvetticaden1</dc:creator>
      <dc:date>2015-09-25T06:28:43Z</dc:date>
    </item>
    <item>
      <title>Re: Inherit group ownership from user (not directory)?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Inherit-group-ownership-from-user-not-directory/m-p/94224#M7527</link>
      <description>&lt;P&gt;There is currently no way for a newly created directory in HDFS to set its group from the primary group of the creating user automatically.  Instead, it always follows the rule quoted in the question: the group is the group of the parent directory.&lt;/P&gt;&lt;P&gt;One way I've handled this in the past is first to create an intermediate directory and then explicitly change its group to the user's primary group, using chmod on the shell or setOwner in the Java APIs.  Then, additional files and directories created by the process would use this as the destination directory.  For example, a MapReduce job could specify its output directory under this intermediate directory, and then the output files created by that MapReduce job would have the desired group.&lt;/P&gt;</description>
      <pubDate>Fri, 30 Oct 2015 00:13:23 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Inherit-group-ownership-from-user-not-directory/m-p/94224#M7527</guid>
      <dc:creator>cnauroth</dc:creator>
      <dc:date>2015-10-30T00:13:23Z</dc:date>
    </item>
  </channel>
</rss>

