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

Improve permission denied message when FSPermissionChecker#checkOwner fails

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Trivial
    • Resolution: Fixed
    • 2.5.0, 3.0.0-alpha1
    • 2.7.0
    • None
    • Reviewed

    Description

      Currently, FSPermissionChecker#checkOwner throws an AccessControlException with a simple "Permission denied" message.

      When users try to set an ACL without ownership permissions, they'll see something like:

      [schu@hdfs-vanilla-1 hadoop]$ hdfs dfs -setfacl -m user:schu:--- /tmp
      setfacl: Permission denied
      

      It'd be helpful if the message had an explanation why the permission was denied to avoid confusion for users who aren't familiar with permissions.

      Attachments

        1. HDFS-6741.2.patch
          5 kB
          Stephen Chu
        2. HDFS-6741.2.patch
          5 kB
          Stephen Chu
        3. HDFS-6741.1.patch
          0.9 kB
          Stephen Chu

        Issue Links

          Activity

            People

              qwertymaniac Harsh J
              schu Stephen Chu
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: