Details
-
Bug
-
Status: Resolved
-
Minor
-
Resolution: Not A Problem
-
None
-
None
-
None
-
Tested on latest CDH integration, and CDH5 as well with the same result.
Description
When ACLs are enabled on a folder, the following sequence of commands provide the following result:
{{$ hdfs dfs -mkdir /tmp/acl
$ hdfs dfs -ls /tmp/acl
$ hdfs dfs -ls /tmp
Found 1 items
drwxr-xr-x - hdfs supergroup 0 2019-05-28 11:48 /tmp/acl
$ hdfs dfs -getfacl /tmp/acl
- file: /tmp/acl
- owner: hdfs
- group: supergroup
user::rwx
group::r-x
other::r-x
$ hdfs dfs -setfacl -m mask::rwx /tmp/acl
$ hdfs dfs -ls /tmp
Found 1 items
drwxrwxr-x+ - hdfs supergroup 0 2019-05-28 11:48 /tmp/acl
drwx-wx-wx - hive supergroup 0 2019-05-27 23:48 /tmp/hive
drwxrwxrwt - mapred hadoop 0 2019-05-28 01:32 /tmp/logs
$ hdfs dfs setfacl -m mask::r- /tmp/acl
$ hdfs dfs -ls /tmp
Found 1 items
drwxr--r-x+ - hdfs supergroup 0 2019-05-28 11:48 /tmp/acl
$ hdfs dfs -setfacl -m mask::r-x /tmp/acl
$ hdfs dfs -ls /tmp
Found 1 items
drwxr-xr-x+ - hdfs supergroup 0 2019-05-28 11:48 /tmp/acl
$ hdfs dfs -getfacl /tmp/acl
- file: /tmp/acl
- owner: hdfs
- group: supergroup
user::rwx
group::r-x
mask::r-x
other::r-x}}
So the group permission representation is changing with the defined mask ACL instead of the group ACL or, maybe even better, the effective group ACL.
Attachments
Issue Links
- is related to
-
HDFS-14619 chmod changes the mask when ACL is enabled
- Resolved