<?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 Re: Can we restrict root directory[level 1 directory ] access for users ? in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Can-we-restrict-root-directory-level-1-directory-access-for/m-p/128272#M22930</link>
    <description>&lt;P&gt;Don't forget to change the umask. Either 077 or 027&lt;/P&gt;</description>
    <pubDate>Fri, 18 Mar 2016 19:15:17 GMT</pubDate>
    <dc:creator>bdurai</dc:creator>
    <dc:date>2016-03-18T19:15:17Z</dc:date>
    <item>
      <title>Can we restrict root directory[level 1 directory ] access for users ?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Can-we-restrict-root-directory-level-1-directory-access-for/m-p/128269#M22927</link>
      <description>&lt;P&gt;I have HDFS filesystem as below -&lt;/P&gt;&lt;P&gt;------&lt;/P&gt;&lt;P&gt;# sudo -u hdfs hadoop fs -ls /&lt;/P&gt;&lt;P&gt;dr--------   - hdfs   hdfs            0 2016-03-09 15:14 /test1&lt;/P&gt;&lt;P&gt;drwxr-xr-x   - bat    hdfs            0 2016-03-09 15:10 /bat&lt;/P&gt;&lt;P&gt;drwxr-xr-x   - hdfs   hdfs            0 2016-03-06 11:25 /hdp&lt;/P&gt;&lt;P&gt;drwxr-xr-x   - mapred hdfs            0 2016-03-06 11:25 /mapred&lt;/P&gt;&lt;P&gt;drwxrwxrwx   - mapred hadoop          0 2016-03-06 11:26 /mr-history&lt;/P&gt;&lt;P&gt;drwxrwxrwx   - hdfs   hdfs            0 2016-03-08 15:30 /tmp&lt;/P&gt;&lt;P&gt;drwxr-xr-x   - hdfs   hdfs            0 2016-03-09 04:55 /user&lt;/P&gt;&lt;P&gt;[root@node1 ~]#&lt;/P&gt;&lt;P&gt;-------- &lt;/P&gt;&lt;P&gt;I have user created name 'bat' and bat user can issue same command as shown below -&lt;/P&gt;&lt;P&gt;--------&lt;/P&gt;&lt;P&gt;[bat@node1 ~]$ id&lt;/P&gt;&lt;P&gt;uid=1009(bat) gid=1007(hdfs2) groups=1007(hdfs2)&lt;/P&gt;&lt;P&gt;[bat@node1 ~]$ hadoop fs -ls /&lt;/P&gt;&lt;P&gt;dr-------- - hdfs hdfs 0 2016-03-09 15:14 /test1&lt;/P&gt;&lt;P&gt;drwxr-xr-x - bat hdfs 0 2016-03-09 15:10 /bat&lt;/P&gt;&lt;P&gt;drwxr-xr-x - hdfs hdfs 0 2016-03-06 11:25 /hdp&lt;/P&gt;&lt;P&gt;drwxr-xr-x - mapred hdfs 0 2016-03-06 11:25 /mapred&lt;/P&gt;&lt;P&gt;drwxrwxrwx - mapred hadoop 0 2016-03-06 11:26 /mr-history&lt;/P&gt;&lt;P&gt;drwxrwxrwx - hdfs hdfs 0 2016-03-08 15:30 /tmp&lt;/P&gt;&lt;P&gt;drwxr-xr-x - hdfs hdfs 0 2016-03-09 04:55 /user&lt;/P&gt;&lt;P&gt;[bat@node1 ~]$ &lt;/P&gt;&lt;P&gt;--------&lt;/P&gt;&lt;P&gt;Is it possible that -  bat user will only able to see the directory on which he has permission / owner of those directories -&lt;/P&gt;&lt;P&gt;So the expected output will be -&lt;/P&gt;&lt;P&gt;[bat@node1 ~]$ id&lt;/P&gt;&lt;P&gt;uid=1009(bat) gid=1007(hdfs2) groups=1007(hdfs2)&lt;/P&gt;&lt;P&gt;[bat@node1 ~]$ hadoop fs -ls /&lt;/P&gt;&lt;P&gt;dr-------- - hdfs hdfs 0 2016-03-09 15:14 /test1&lt;/P&gt;&lt;P&gt;drwxr-xr-x - bat hdfs 0 2016-03-09 15:10 /bat&lt;/P&gt;&lt;P&gt;[bat@node1 ~]$&lt;/P&gt;&lt;P&gt;---- &lt;/P&gt;&lt;P&gt;Can we block access to level 1 directories in HDFS/Ranger/etc... in hadoop ?&lt;/P&gt;&lt;P&gt;If not why is so ?&lt;/P&gt;</description>
      <pubDate>Tue, 15 Mar 2016 16:27:10 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Can-we-restrict-root-directory-level-1-directory-access-for/m-p/128269#M22927</guid>
      <dc:creator>sshimpi</dc:creator>
      <dc:date>2016-03-15T16:27:10Z</dc:date>
    </item>
    <item>
      <title>Re: Can we restrict root directory[level 1 directory ] access for users ?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Can-we-restrict-root-directory-level-1-directory-access-for/m-p/128270#M22928</link>
      <description>&lt;P&gt;&lt;A href="https://community.hortonworks.com/users/2648/sshimpi.html"&gt;Sagar Shimpi&lt;/A&gt; - I think this is working as expected because you have execute permission for other users on "/" directory on hdfs so they can see contents inside "/" &lt;/P&gt;&lt;P&gt;e.g.&lt;/P&gt;&lt;PRE&gt;[root@sandbox ~]# hadoop fs -ls -d /
drwxr-xr-x   - hdfs hdfs          0 2015-10-27 13:12 /
[root@sandbox ~]#&lt;/PRE&gt;</description>
      <pubDate>Wed, 16 Mar 2016 13:40:00 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Can-we-restrict-root-directory-level-1-directory-access-for/m-p/128270#M22928</guid>
      <dc:creator>KuldeepK</dc:creator>
      <dc:date>2016-03-16T13:40:00Z</dc:date>
    </item>
    <item>
      <title>Re: Can we restrict root directory[level 1 directory ] access for users ?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Can-we-restrict-root-directory-level-1-directory-access-for/m-p/128271#M22929</link>
      <description>&lt;P&gt;
	For the actual question on how to then fix the permissions so that users from different group don't get to see/read it, below might be helpful.&lt;/P&gt;&lt;PRE&gt;hdfs dfs -chmod -R 770 &amp;lt;path/to/restrict&amp;gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 18 Mar 2016 15:05:28 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Can-we-restrict-root-directory-level-1-directory-access-for/m-p/128271#M22929</guid>
      <dc:creator>rpatil</dc:creator>
      <dc:date>2016-03-18T15:05:28Z</dc:date>
    </item>
    <item>
      <title>Re: Can we restrict root directory[level 1 directory ] access for users ?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Can-we-restrict-root-directory-level-1-directory-access-for/m-p/128272#M22930</link>
      <description>&lt;P&gt;Don't forget to change the umask. Either 077 or 027&lt;/P&gt;</description>
      <pubDate>Fri, 18 Mar 2016 19:15:17 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Can-we-restrict-root-directory-level-1-directory-access-for/m-p/128272#M22930</guid>
      <dc:creator>bdurai</dc:creator>
      <dc:date>2016-03-18T19:15:17Z</dc:date>
    </item>
    <item>
      <title>Re: Can we restrict root directory[level 1 directory ] access for users ?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Can-we-restrict-root-directory-level-1-directory-access-for/m-p/128273#M22931</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/2648/sshimpi.html" nodeid="2648"&gt;@Sagar Shimpi - Can you please accept appropriate answer or provide your own solution?&lt;/A&gt; &lt;/P&gt;</description>
      <pubDate>Thu, 18 Aug 2016 13:06:56 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Can-we-restrict-root-directory-level-1-directory-access-for/m-p/128273#M22931</guid>
      <dc:creator>KuldeepK</dc:creator>
      <dc:date>2016-08-18T13:06:56Z</dc:date>
    </item>
  </channel>
</rss>

