Hadoop HDFS
  1. Hadoop HDFS
  2. HDFS-6741

Improve permission denied message when FSPermissionChecker#checkOwner fails

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Trivial Trivial
    • Resolution: Fixed
    • Affects Version/s: 3.0.0, 2.5.0
    • 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.

      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:
              Harsh J
              Reporter:
              Stephen Chu
            • Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development