You are viewing a plain text version of this content. The canonical link for it is here.
Posted to hdfs-dev@hadoop.apache.org by "zhouyingchao (JIRA)" <ji...@apache.org> on 2015/05/18 13:41:00 UTC
[jira] [Created] (HDFS-8419) chmod impact user's effective ACL
zhouyingchao created HDFS-8419:
----------------------------------
Summary: chmod impact user's effective ACL
Key: HDFS-8419
URL: https://issues.apache.org/jira/browse/HDFS-8419
Project: Hadoop HDFS
Issue Type: Bug
Components: HDFS
Affects Versions: 2.6.0
Reporter: zhouyingchao
Assignee: zhouyingchao
I set a directory's ACL to assign rwx permission to a user h_user1. Later, I used chmod to change the group permission to r-x. I understand chmod of a acl enabled file would only change the permission mask. What's make me surprise is that the operation will change the h_user1's effective ACL from rwx to r-x.
Following are ACLs before any operaton:
-----------------------------------------
# file: /grptest
# owner: hdfs_tst_admin
# group: supergroup
user::rwx
user:h_user1:rwx
group::r-x
mask::rwx
other::---
-----------------------------------------
Following are ACLs after "chmod 750 /grptest"
-----------------------------------------
# file: /grptest
# owner: hdfs_tst_admin
# group: supergroup
user::rwx
user:hdfs_admin:rwx #effective:r-x
group::r-x
mask::r-x
other::---
# file: /grptest
# owner: hdfs_tst_admin
# group: supergroup
user::rwx
user:h_user1:rwx #effective:r-x
group::r-x
mask::r-x
other::---
-----------------------------------------
I'm wondering if this behavior is by design. If not, I'd like to fix the issue. Thank you.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)