<?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: Root user not showing up on Ranger in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Root-user-not-showing-up-on-Ranger/m-p/279765#M208448</link>
    <description>&lt;P&gt;I'm in a test environment and it would really help if I'm already logged in as root to do everything I need, including accessing Hbase.&lt;/P&gt;&lt;P&gt;I performed the changes and everything works perfectly! Thanks!&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 09 Oct 2019 11:44:52 GMT</pubDate>
    <dc:creator>marcusvmc</dc:creator>
    <dc:date>2019-10-09T11:44:52Z</dc:date>
    <item>
      <title>Root user not showing up on Ranger</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Root-user-not-showing-up-on-Ranger/m-p/279702#M208404</link>
      <description>&lt;P&gt;Why isn't the root user showing up on ranger?&lt;/P&gt;
&lt;P&gt;I intend to give permission to the root user on Hbase but I'm getting the following error:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="java"&gt;hbase(main):001:0&amp;gt; grant 'root','RWXCA'

ERROR: org.apache.hadoop.hbase.coprocessor.CoprocessorException: HTTP 400 Error: root is Not Found
        at org.apache.ranger.authorization.hbase.RangerAuthorizationCoprocessor.grant(RangerAuthorizationCoprocessor.java:1261)
        at org.apache.ranger.authorization.hbase.RangerAuthorizationCoprocessor.grant(RangerAuthorizationCoprocessor.java:1072)
        at org.apache.hadoop.hbase.protobuf.generated.AccessControlProtos$AccessControlService$1.grant(AccessControlProtos.java:10023)
        at org.apache.hadoop.hbase.protobuf.generated.AccessControlProtos$AccessControlService.callMethod(AccessControlProtos.java:10187)
        at org.apache.hadoop.hbase.regionserver.HRegion.execService(HRegion.java:8065)
        at org.apache.hadoop.hbase.regionserver.RSRpcServices.execServiceOnRegion(RSRpcServices.java:2426)
        at org.apache.hadoop.hbase.regionserver.RSRpcServices.execService(RSRpcServices.java:2408)
        at org.apache.hadoop.hbase.shaded.protobuf.generated.ClientProtos$ClientService$2.callBlockingMethod(ClientProtos.java:42010)
        at org.apache.hadoop.hbase.ipc.RpcServer.call(RpcServer.java:413)
        at org.apache.hadoop.hbase.ipc.CallRunner.run(CallRunner.java:131)
        at org.apache.hadoop.hbase.ipc.RpcExecutor$Handler.run(RpcExecutor.java:324)
        at org.apache.hadoop.hbase.ipc.RpcExecutor$Handler.run(RpcExecutor.java:304)&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I assume this is because ranger does not recognize the unix root user. But why? Is there a workaround?&lt;/P&gt;</description>
      <pubDate>Tue, 08 Oct 2019 18:37:41 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Root-user-not-showing-up-on-Ranger/m-p/279702#M208404</guid>
      <dc:creator>marcusvmc</dc:creator>
      <dc:date>2019-10-08T18:37:41Z</dc:date>
    </item>
    <item>
      <title>Re: Root user not showing up on Ranger</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Root-user-not-showing-up-on-Ranger/m-p/279705#M208406</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/54379"&gt;@marcusvmc&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;STRONG&gt;ROOT&lt;/STRONG&gt; use is not a normal HDP user but an OS superuser used to escalate privileges to do some changes on the host level.&lt;/P&gt;&lt;P&gt;The&lt;STRONG&gt; hbase&lt;/STRONG&gt; super user is&lt;STRONG&gt; hbase&lt;/STRONG&gt; just like hdfs &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; Ranger reads the /etc/passwd and /etc/group and ONLY loads (syncs) users /groups whos id is &amp;gt; 500&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you want to trick Ranger to sync root who's id is &lt;STRONG&gt;root:x:0:0:root:/root:/bin/bash&lt;/STRONG&gt; then you have to tweak the minimum user ID below&lt;/P&gt;&lt;DIV class="tasklabel"&gt;&lt;H2&gt;Procedure&lt;/H2&gt;&lt;/DIV&gt;&lt;OL&gt;&lt;LI&gt;&lt;SPAN class="cmd"&gt;Configure Ranger user sync for UNIX:&lt;/SPAN&gt;&lt;OL&gt;&lt;LI&gt;&lt;SPAN class="cmd"&gt;On the Ranger Customize Services page, select the Ranger User Info tab.&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN class="cmd"&gt;Click&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="ph uicontrol"&gt;Yes&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;under Enable User Sync.&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN class="cmd"&gt;Use the Sync Source drop-down to select UNIX, then set the following properties:&lt;/SPAN&gt;&lt;DIV class="itemgroup info"&gt;&lt;DIV class="tablenoborder margin-bottom-1"&gt;Table 1. UNIX user sync propertiesProperty Description Default value &lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Minimum user ID&lt;/TD&gt;&lt;TD&gt;Only sync users above this user ID.&lt;/TD&gt;&lt;TD&gt;500&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Password file&lt;/TD&gt;&lt;TD&gt;The location of the password file on the Linux server.&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;/etc/passwd&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Group file&lt;/TD&gt;&lt;TD&gt;The location of the groups file on the Linux server.&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;/etc/group&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Question:&lt;/P&gt;&lt;P&gt;Why would you want root user rights managed by Ranger? Use &lt;STRONG&gt;sudo&lt;/STRONG&gt; if you want to impersonate root&lt;/P&gt;&lt;P&gt;I hope that helps !!&lt;/P&gt;&lt;DIV class="tasklabel"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 08 Oct 2019 20:14:36 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Root-user-not-showing-up-on-Ranger/m-p/279705#M208406</guid>
      <dc:creator>Shelton</dc:creator>
      <dc:date>2019-10-08T20:14:36Z</dc:date>
    </item>
    <item>
      <title>Re: Root user not showing up on Ranger</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Root-user-not-showing-up-on-Ranger/m-p/279765#M208448</link>
      <description>&lt;P&gt;I'm in a test environment and it would really help if I'm already logged in as root to do everything I need, including accessing Hbase.&lt;/P&gt;&lt;P&gt;I performed the changes and everything works perfectly! Thanks!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Oct 2019 11:44:52 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Root-user-not-showing-up-on-Ranger/m-p/279765#M208448</guid>
      <dc:creator>marcusvmc</dc:creator>
      <dc:date>2019-10-09T11:44:52Z</dc:date>
    </item>
  </channel>
</rss>

