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

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

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 0.5.0
    • 0.5.0
    • plugins
    • 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

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            madhan Madhan Neethiraj
            madhan Madhan Neethiraj
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment