hadoop-hdfs-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "zhouyingchao (JIRA)" <j...@apache.org>
Subject [jira] [Created] (HDFS-8419) chmod impact user's effective ACL
Date Mon, 18 May 2015 11:41:00 GMT
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)

Mime
View raw message