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

Behaviour change in ranger 2.3.0 vs ranger 2.1.0

Agile BoardAttach filesAttach ScreenshotAdd voteVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 2.3.0
    • None
    • Ranger
    • None

    Description

      I observed some behaviour change in ranger 2.3.0 vs ranger 2.1.0 (with same file/folder permissions & ranger policies)

       

      2.1.0:
      HDFS User:
      Here using HDFS user just to get permission on folder
      
      bash-4.2$ hdfs dfs -ls /odh/apps/2.0.0/tez/
      Found 1 items
      -r--r--r--   3 hdfs hadoop   73155475 2022-11-08 12:25 /odh/apps/2.0.0/tez/tez.tar.gz
      
      
      Hive User:
      bash-4.2$ hdfs dfs -ls /odh/apps/2.0.0/tez/tez.tar.gz
      -r--r--r--   3 hdfs hadoop   73155475 2022-11-08 12:25 /odh/apps/2.0.0/tez/tez.tar.gz
      
      bash-4.2$ hdfs dfs -ls /services
      ls: `/services': No such file or directory
       
      
      2.3.0:
      
      HDFS USER:
      Here using HDFS user just to get permission on folder
      
      bash-4.2$  hdfs dfs -ls /odh/apps/2.0.0/tez/
      Found 1 items
      -r--r--r--   3 hdfs hadoop   73165217 2022-11-07 20:26 /odh/apps/2.0.0/tez/tez.tar.gz
      
      Hive User:
      bash-4.2$  hdfs dfs -ls /odh/apps/2.0.0/tez/tez.tar.gz
      ls: org.apache.ranger.authorization.hadoop.exceptions.RangerAccessControlException: Permission denied: user=hive, access=EXECUTE, inode="/odh/apps/2.0.0/tez/tez.tar.gz"
      bash-4.2$ hdfs dfs -ls /services
      ls: org.apache.ranger.authorization.hadoop.exceptions.RangerAccessControlException: Permission denied: user=hive, access=EXECUTE, inode="/"
      

       

      1.  /odh/apps/2.0.0/tez/tez.tar.gz has the same permissions & policies, with Hive user In Ranger 2.1.0 list command is giving result, but in ranger 2.3.0 throwing RangerAccessControlException for EXECUTE permission.
      2.  If we try to list non-existing directory in this case /services,
        with Hive user In Ranger 2.1.0 list command is giving No such file or directory message, but in ranger 2.3.0 throwing RangerAccessControlException for EXECUTE permission.

      Is it a bug/ behaviour change ? Is it mandatory to provide EXECUTE permission for listing file/directories from Ranger 2.3.0 version?

       

      RANGER-3294 Is this change the reason for this behaviour, please correct me if I wrong.

      Attachments

        Activity

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

          People

            Unassigned Unassigned
            ManoharVanam Manohar Vanam

            Dates

              Created:
              Updated:

              Slack

                Issue deployment