<?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 Accessing NFS gateway files and folders as superuser in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Accessing-NFS-gateway-files-and-folders-as-superuser/m-p/56754#M64016</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a host running a NFS gateway mounted on the same machine under /mnt/hdfs.&lt;/P&gt;&lt;P&gt;Permissions seems to work fine for all the regular users, my only issue is the hdfs user. When I access a file using the native hdfs client the hdfs user is considered "the root user" and can perform any operation, is this true even for the file and folders exported via the NFS gateway?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In my installation it doesn't work:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;[hdfs@hostname:/mnt/hdfs/app]$ ls -l
total 3
drwxr-x---. 5 userA nobody 160 19 giu 13:02 appA
drwxr-x---. 5 userB nobody 160 19 giu 13:02 appB
drwxr-x---. 5 userC nobody 160 19 giu 13:02 appC
[hdfs@hostname:/mnt/hdfs/app]$ cd appA
bash: cd: appA: Permission denied&lt;/PRE&gt;&lt;P&gt;If I try to read from the folder /mnt/hdfs/app/appA as userA it works just fine.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is this the expected or I have misconfigured something?&lt;/P&gt;</description>
    <pubDate>Fri, 30 Jun 2017 11:11:21 GMT</pubDate>
    <dc:creator>parnigot</dc:creator>
    <dc:date>2017-06-30T11:11:21Z</dc:date>
    <item>
      <title>Accessing NFS gateway files and folders as superuser</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Accessing-NFS-gateway-files-and-folders-as-superuser/m-p/56754#M64016</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a host running a NFS gateway mounted on the same machine under /mnt/hdfs.&lt;/P&gt;&lt;P&gt;Permissions seems to work fine for all the regular users, my only issue is the hdfs user. When I access a file using the native hdfs client the hdfs user is considered "the root user" and can perform any operation, is this true even for the file and folders exported via the NFS gateway?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In my installation it doesn't work:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;[hdfs@hostname:/mnt/hdfs/app]$ ls -l
total 3
drwxr-x---. 5 userA nobody 160 19 giu 13:02 appA
drwxr-x---. 5 userB nobody 160 19 giu 13:02 appB
drwxr-x---. 5 userC nobody 160 19 giu 13:02 appC
[hdfs@hostname:/mnt/hdfs/app]$ cd appA
bash: cd: appA: Permission denied&lt;/PRE&gt;&lt;P&gt;If I try to read from the folder /mnt/hdfs/app/appA as userA it works just fine.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is this the expected or I have misconfigured something?&lt;/P&gt;</description>
      <pubDate>Fri, 30 Jun 2017 11:11:21 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Accessing-NFS-gateway-files-and-folders-as-superuser/m-p/56754#M64016</guid>
      <dc:creator>parnigot</dc:creator>
      <dc:date>2017-06-30T11:11:21Z</dc:date>
    </item>
    <item>
      <title>Re: Accessing NFS gateway files and folders as superuser</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Accessing-NFS-gateway-files-and-folders-as-superuser/m-p/57159#M64017</link>
      <description>&lt;P&gt;Apparently this is the expeced behaviour.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This JIRA &lt;A href="https://issues.apache.org/jira/browse/HDFS-6488" target="_blank"&gt;https://issues.apache.org/jira/browse/HDFS-6488&lt;/A&gt; added support for the superuser (backported in CDH 5.8.x) but it is still disabled by default.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To set a superuser I've added a safety-valve with the following:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&amp;lt;property&amp;gt;
  &amp;lt;name&amp;gt;nfs.superuser&amp;lt;/name&amp;gt;
  &amp;lt;value&amp;gt;the_name_of_hdfs_superuser&amp;lt;/value&amp;gt;
&amp;lt;/property&amp;gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 10 Jul 2017 10:50:57 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Accessing-NFS-gateway-files-and-folders-as-superuser/m-p/57159#M64017</guid>
      <dc:creator>parnigot</dc:creator>
      <dc:date>2017-07-10T10:50:57Z</dc:date>
    </item>
  </channel>
</rss>

