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

Improve permission denied message when FSPermissionChecker#checkOwner fails

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Trivial
    • Resolution: Fixed
    • Affects Version/s: 2.5.0, 3.0.0-alpha1
    • Fix Version/s: 2.7.0
    • Component/s: None
    • Labels:
    • Hadoop Flags:
      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.1.patch
          0.9 kB
          Stephen Chu
        2. HDFS-6741.2.patch
          5 kB
          Stephen Chu
        3. HDFS-6741.2.patch
          5 kB
          Stephen Chu

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: