Uploaded image for project: 'Ranger'
  1. Ranger
  2. RANGER-482

HDFS plugin denies access even when policy exists to allow the access

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 0.5.0
    • Fix Version/s: 0.5.0
    • Component/s: plugins
    • Labels:
      None

      Description

      Here are the steps to reproduce this issue (thanks Ramesh Mani):

      • sudo su hdfs
      • hdfs dfs -mkdir -p /demo/data
      • hdfs dfs -chmod 700 /demo
      • hdfs dfs -chmod 700 /demo/data
      • Create a Ranger policy that allows rwx access on /demo directory to user “guest”, with recursive enabled.
      • sudo su guest
      • hdfs dfs -ls /demo (this works )
      • hdfs dfs –ls /demo/data (this fails with the following error)
        ls: Permission denied: user=guest, access=EXECUTE, inode="/demo/data":hdfs:hdfs:drwx------

      Since a Ranger policy exists to allow 'rwx' access to user 'guest' on files and directories under /demo, the user should be allowed to "ls /demo/data".

        Attachments

          Activity

            People

            • Assignee:
              madhan.neethiraj Madhan Neethiraj
              Reporter:
              madhan.neethiraj Madhan Neethiraj
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: