diff --git a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/shell/AclCommands.java b/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/shell/AclCommands.java index 701c9deb9c2..5a60ef2ae9b 100644 --- a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/shell/AclCommands.java +++ b/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/shell/AclCommands.java @@ -173,7 +173,11 @@ class AclCommands extends FsCommand { + " -x :Remove specified ACL entries. Other ACL entries are retained.\n" + " --set :Fully replace the ACL, discarding all existing entries." + " The must include entries for user, group, and others" - + " for compatibility with permission bits.\n" + + " for compatibility with permission bits. If the ACL spec contains" + + " only access entries, then the existing default entries are retained" + + ". If the ACL spec contains only default entries, then the existing" + + " access entries are retained. If the ACL spec contains both access" + + " and default entries, then both are replaced.\n" + " : Comma separated list of ACL entries.\n" + " : File or directory to modify.\n"; diff --git a/hadoop-common-project/hadoop-common/src/site/markdown/FileSystemShell.md b/hadoop-common-project/hadoop-common/src/site/markdown/FileSystemShell.md index f4a37ea0366..22dfb39ad97 100644 --- a/hadoop-common-project/hadoop-common/src/site/markdown/FileSystemShell.md +++ b/hadoop-common-project/hadoop-common/src/site/markdown/FileSystemShell.md @@ -625,7 +625,7 @@ Options: * -R: Apply operations to all files and directories recursively. * -m: Modify ACL. New entries are added to the ACL, and existing entries are retained. * -x: Remove specified ACL entries. Other ACL entries are retained. -* ``--set``: Fully replace the ACL, discarding all existing entries. The *acl\_spec* must include entries for user, group, and others for compatibility with permission bits. +* ``--set``: Fully replace the ACL, discarding all existing entries. The *acl\_spec* must include entries for user, group, and others for compatibility with permission bits. If the ACL spec contains only access entries, then the existing default entries are retained. If the ACL spec contains only default entries, then the existing access entries are retained. If the ACL spec contains both access and default entries, then both are replaced. * *acl\_spec*: Comma separated list of ACL entries. * *path*: File or directory to modify.