Uploaded image for project: 'Hadoop HDFS'
  1. Hadoop HDFS
  2. HDFS-6689

NFS doesn't return correct lookup access for directories

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.2.0
    • 2.6.0
    • nfs
    • None
    • Reviewed

    Description

      NFS does not allow other user to access a file with 644 permission and a parent with 711 access right.

      Steps to reproduce:

      1. Create a directory /user/userX with 711 permissions
      2. Upload a file at /user/userX/TestFile with 644 as userX
      3. Try to access WriteTest as userY.
      HDFS will allow to read TestFile.

      bash-4.1$ id
      uid=661(userY) gid=100(users) groups=100(users),13016(groupY)
      
      bash-4.1$ hdfs dfs -cat /user/userX/TestFile
      create a file with some content
      

      NFS will not allow to read TestFile.

      bash-4.1$ cat /tmp/tmp_mnt/user/userX/TestFile
      cat: /tmp/tmp_mnt/user/userX/TestFile: Permission denied
      

      Attachments

        1. HDFS-6689.patch
          2 kB
          Brandon Li

        Activity

          People

            brandonli Brandon Li
            yeshavora Yesha Vora
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: